Title: Custom Global Variables
Author: akirak
Published: <strong>7 ਅਪ੍ਰੈਲ 2016</strong>
Last modified: 22 ਮਾਰਚ 2023

---

ਪਲੱਗਇਨਾਂ ਖੋਜੋ

![](https://ps.w.org/custom-global-variables/assets/banner-772x250.jpg?rev=2045114)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/custom-global-variables/assets/icon-256x256.png?rev=1415125)

# Custom Global Variables

 [akirak](https://profiles.wordpress.org/akirak/) ਵੱਲੋਂ

[ਡਾਊਨਲੋਡ ਕਰੋ](https://downloads.wordpress.org/plugin/custom-global-variables.1.1.2.zip)

 * [ਵੇਰਵਾ](https://pan.wordpress.org/plugins/custom-global-variables/#description)
 * [ਸਮੀਖਿਆਵਾਂ](https://pan.wordpress.org/plugins/custom-global-variables/#reviews)
 *  [ਸਥਾਪਤੀਕਰਨ](https://pan.wordpress.org/plugins/custom-global-variables/#installation)
 * [ਵਿਕਾਸ](https://pan.wordpress.org/plugins/custom-global-variables/#developers)

 [ਸਹਿਯੋਗ](https://wordpress.org/support/plugin/custom-global-variables/)

## ਵੇਰਵਾ

Create your own custom variables to manage information on your website such as:

 * Phone numbers
 * Addresses
 * Social media links
 * HTML snippets
 * And anything else
    test

Easily access them globally in WordPress and PHP.

#### Why you need it

Rather than having to change something like an email address across multiple pages,
you can do it in one place. Avoid the pitfalls of hard coding information in your
WordPress theme that is likely to change.

#### Why it’s better

 * Your variables are stored and retrieved locally without any calls to the database.
   That means faster load times for your pages!
 * Variables can be accessed easily in PHP from the global scope.

### Usage

Display your variables using the shortcode syntax:

    ```
    [cgv variable-name]
    ```

Or using the superglobal in PHP:

    ```
    <?php echo $GLOBALS['cgv']['variable-name'] ?>
    ```

## ਸਕਰੀਨਸ਼ਾਟ

 * [[
 * Settings -> Custom Global Variables

## ਸਥਾਪਤੀਕਰਨ

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the `Settings -> Custom Global Variables` screen to define your variables

## ਸਮੀਖਿਆਵਾਂ

![](https://secure.gravatar.com/avatar/5ff8e58516546c53e0ef11e8302f54600a4f219d32363b1d63f0cc8dc2559102?
s=60&d=retro&r=g)

### 󠀁[Thanks For This GREAT Plugin!!!](https://wordpress.org/support/topic/thanks-for-this-great-plugin-28/)󠁿

 [](https://profiles.wordpress.org/bhetzman/) 5 ਜੂਨ 2022

I am not one to leave reviews. But have to let you all know what a Godsend this 
plugin has been to me and my team!! So simple, yet so effective. Thanks again and
keep up the great work.

![](https://secure.gravatar.com/avatar/7e12f784ce92a99f52d52bf0d5e6e204e4bb2fd3cd455ba114cb7c1425274fbc?
s=60&d=retro&r=g)

### 󠀁[The best custom shortcode plugin for agencies!](https://wordpress.org/support/topic/the-best-custom-shortcode-plugin-for-agencies/)󠁿

 [Seb Fontan](https://profiles.wordpress.org/sebfontan/) 7 ਮਾਰਚ 2022

I’ve been using CGV for a few years now. At our agency, it’s become one of our go-
to plugins and is installed on virtually all of our sites. No other plugin allows
you to create and manage custom variables (shortcodes) as easily as Custom Global
Variables. The UI is straightforward and uncluttered. I’m grateful to the developers
for continuing to support and update this little gem. Hope it sticks around for 
many years and doesn’t change too much!

![](https://secure.gravatar.com/avatar/83159b199f3c4a09182d76e87e0fe25ef1d2665b8352ab9f83b4789b6c0a9f48?
s=60&d=retro&r=g)

### 󠀁[Exactly what I was looking for.](https://wordpress.org/support/topic/exactly-what-i-was-looking-for-295/)󠁿

 [Leona](https://profiles.wordpress.org/wp-leona/) 26 ਮਈ 2017

I needed a way of presenting some data in multiple locations, being a web developer
I knew I could use variables but didn’t want to edit the core app or theme, so this
fitted my requirements like a glove, only one bug, when you enter a variable name
but not a value and save, it says save successful, but it doesn’t actually save,
this need a check for data, its a minor thing, once I figured out why my newly entered
variables.

![](https://secure.gravatar.com/avatar/dd777a1f932fcf964f2f8fbd350e46e6b473e29f2f3c451fb0db36d2ecf2d432?
s=60&d=retro&r=g)

### 󠀁[Simply, smart and free !](https://wordpress.org/support/topic/simply-smart-and-free/)󠁿

 [Tony88](https://profiles.wordpress.org/tony88/) 11 ਮਈ 2017

Congratulations on great work.

![](https://secure.gravatar.com/avatar/f01f7251292e81367fadc5268878d76d09665f0d4b90ed24375adbee3f3f24bf?
s=60&d=retro&r=g)

### 󠀁[Just what i needed, thanks!](https://wordpress.org/support/topic/just-what-i-needed-thanks-6/)󠁿

 [wzshop](https://profiles.wordpress.org/wzshop/) 3 ਅਪ੍ਰੈਲ 2017

Just what i needed, thanks!

![](https://secure.gravatar.com/avatar/b0ad7b1400673bdf4e7e153b58bad776459627d57f95fbde30bb386e1748acd7?
s=60&d=retro&r=g)

### 󠀁[Easy to use! Easy and simple! Wonderful!](https://wordpress.org/support/topic/easy-to-use-easy-and-simple-wonderful/)󠁿

 [ppp2017](https://profiles.wordpress.org/ppp2017/) 8 ਫਰਵਰੀ 2017

Easy to use! Easy and simple! Wonderful!

 [ Read all 10 reviews ](https://wordpress.org/support/plugin/custom-global-variables/reviews/)

## ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ

“Custom Global Variables” is open source software. The following people have contributed
to this plugin.

ਯੋਗਦਾਨੀ

 *   [ akirak ](https://profiles.wordpress.org/akirak/)
 *   [ Abdullah Khalfan ](https://profiles.wordpress.org/abdullahkhalfan/)

[“Custom Global Variables” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।](https://translate.wordpress.org/projects/wp-plugins/custom-global-variables)

### ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?

[Browse the code](https://plugins.trac.wordpress.org/browser/custom-global-variables/),
check out the [SVN repository](https://plugins.svn.wordpress.org/custom-global-variables/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/custom-global-variables/)
by [RSS](https://plugins.trac.wordpress.org/log/custom-global-variables/?limit=100&mode=stop_on_copy&format=rss).

## ਤਬਦੀਲੀ-ਚਿੱਠਾ

#### 1.1.2

 * Updated to be able to use markups in value fields.

#### 1.1.1

 * This is a security and maintenance release and we strongly encourage you to update
   to it immediately.

#### 1.1.0

 * This is a security and maintenance release and we strongly encourage you to update
   to it immediately.

#### 1.0.5

 * Updated accreditation
 * Updated stylesheet
 * Tested up to WordPress 5.1

#### 1.0.4

 * Fixed folder path in error message

#### 1.0.3

 * Changed file path to where variables are stored

#### 1.0.2

 * Support for older versions of PHP that handle object referencing differently

#### 1.0.1

 * Support for older versions of PHP (< 5.4) that do not allow the short array syntax

## ਮੈਟਾ

 *  Version **1.1.2**
 *  Last updated **3 ਸਾਲ ਪਹਿਲਾਂ**
 *  Active installations **5,000+**
 *  WordPress version ** 3.0.1 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Tested up to **6.1.10**
 *  PHP version ** 5.6 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/custom-global-variables/)
 * Tags
 * [options](https://pan.wordpress.org/plugins/tags/options/)[settings](https://pan.wordpress.org/plugins/tags/settings/)
   [shortcodes](https://pan.wordpress.org/plugins/tags/shortcodes/)[variables](https://pan.wordpress.org/plugins/tags/variables/)
 *  [Advanced View](https://pan.wordpress.org/plugins/custom-global-variables/advanced/)

## ਦਰਜਾਬੰਦੀ

 5 out of 5 stars.

 *  [  10 5-star reviews     ](https://wordpress.org/support/plugin/custom-global-variables/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/custom-global-variables/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/custom-global-variables/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/custom-global-variables/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/custom-global-variables/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-global-variables/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-global-variables/reviews/)

## ਯੋਗਦਾਨੀ

 *   [ akirak ](https://profiles.wordpress.org/akirak/)
 *   [ Abdullah Khalfan ](https://profiles.wordpress.org/abdullahkhalfan/)

## ਸਹਿਯੋਗ

ਕੁਝ ਕਹਿਣਾ ਹੈ? ਮਦਦ ਚਾਹੀਦੀ ਹੈ?

 [ਸਹਿਯੋਗ ਫੋਰਮ ਦੇਖੋ](https://wordpress.org/support/plugin/custom-global-variables/)