Easily create custom variables that can be accessed globally in Wordpress and PHP. Retrieval of information is extremely fast, with no database calls.
As of April 2026, Custom Global Variables is a WordPress options plugin with 5.0K+ active installations and a 5/5 rating from 10 reviews. It has been downloaded 20K+ times in total. Requires WordPress 3.0.1+ and PHP 5.6+. Available on WordPress.org since 2016. Last updated 3 years ago — may have compatibility concerns. Download volume is stable this week. Top alternative: Redux Framework.
Create your own custom variables to manage information on your website such as:
Easily access them globally in WordPress and PHP.
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.
Display your variables using the shortcode syntax:
[cgv variable-name]
Or using the superglobal in PHP:
<?php echo $GLOBALS['cgv']['variab…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.
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!
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.
Congratulations on great work.
Just what i needed, thanks!
| WordPress | 3.0.1+ requiredTested up to 6.1.10 |
| PHP | 5.6+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.