跳到内容

SufiLabs Global Variables Manager

v1.3.1

iamsufyanikram · 2026年10月10日 上架

Save your phone number, address or business name once, then use it anywhere with a shortcode, a PHP function or an Elementor dynamic tag.

正在使用
10 以下
评分
暂无
累计下载
195
最近更新
2026年10月10日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

The Global Variables screen: your variables in one table, each with its ready-to-copy shortcode.
The Global Variables screen: your variables in one table, each with its ready-to-copy shortcode.
The Add a variable form and the optional uninstall setting.
The Add a variable form and the optional uninstall setting.
The Built automatically table showing generated phone, WhatsApp, email and map links, and the How to use section.
The Built automatically table showing generated phone, WhatsApp, email and map links, and the How to use section.

Have you ever changed your phone number and then had to hunt through twenty pages to update it? Global Variables Manager fixes that. You type each piece of information once, on one screen. Everywhere that information appears on your site updates by itself.

How it works

  1. Go to Global Variables in the WordPress admin menu.
  2. Add a variable, for example the key phone_number with your phone number as the value.
  3. Put [gvmgr key="phone_number"] anywhere you can write content.

That is all. Change the value later and every page follows.

Links are built for you

Phone, WhatsApp, email and address variables also create ready-made links automatically, so you never type tel:, wa.me or mailto: by hand:

  • A Phone variable gives you an international-format number and a tel: link.
  • A WhatsApp Number variable gives you a wa.me link (with an optional pre-filled message) and a readable number.
  • An Email variable gives you a mailto: link.
  • An Address variable gives you a one-line version, a Google Maps link and a directions link.

These are never stored. They are worked out from the value you saved, so there is only ever one place to change.

Features

  • Simple admin screen: add, edit and delete variables in one table.
  • Seven types: Text, Textarea, Email, URL, Phone, WhatsApp Number and Address.
  • Shortcode: [gvmgr key="your_key"].
  • PHP function for theme developers: gvmgr_get_variable( 'your_key' ).
  • Elementor dynamic tag (Site Global Variable) for text fields and link fields. Elementor is optional.
  • Automatic phone, WhatsApp, email and map links.
  • All output is escaped, so a variable cannot inject code into your pages.
  • No tracking, no ads, no external requests, no JavaScript on your site.
  • Optional setting to delete all data when the plugin is deleted. Off by default.
  • Translation-ready.

Good to know

  • Only users who can manage options (Administrators) can create or change variables.
  • Anyone who can write a post or page can print any variable with the shortcode, and visitors can see every variable wherever you use it. Do not store passwords or API keys in this plugin.
  • Phone numbers typed without a country code are assumed to belong to the United Kingdom (+44). If you are elsewhere, add a variable with the key country_code (for example 1 for the USA) and set it once.

External services

This plugin does not send any data anywhere and makes no requests to outside services.

The automatically generated links point to third-party sites, but only when a visitor clicks them: WhatsApp (https://wa.me/) for WhatsApp links, and Google Maps (https://www.google.com/maps/) for map and directions links. Nothing is sent to those services by your website or by this plugin. Once a visitor follows a link, that service’s own terms and privacy policy apply: WhatsApp and Google.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums