Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Custom Global Variables icon

Custom Global Variables

v1.1.4
by akirak · 5.0 (10 reviews)

Easily create custom variables that can be accessed globally in Wordpress and PHP. Retrieval of information is extremely fast, with no database calls.

5K+ active installs Updated Nov 02, 2026 Tested to 7.1.5 Requires PHP 5.6
Try Demo Download
Pre-installed Ready in ~10s No card
Custom Global Variables

About Custom Global Variables

Create custom variables on your website for things like phone numbers, addresses, social media links, and more. Easily access and update these variables across your WordPress site and PHP code, without making multiple changes. Plus, your variables are stored locally for faster page load times. Use shortcodes or PHP code to display your variables.

Screenshots

Custom Global Variables screenshot

Changelog

1.1.4

  • Added an optional link for users to share feedback about possible future agency features.
  • No existing plugin functionality has been changed.

1.1.3

  • Fixed variables appearing to be lost after AUTH_KEY changes. When there is no saved data for the current key and exactly one previous data file exists, it is copied for the current key. The previous file is kept. When several previous files exist, nothing is chosen automatically and a warning is shown to administrators.
  • Variables are now saved through a temporary file, and the previous data is kept as a .bak file. A failed save no longer empties the data file.
  • A data file that cannot be read is no longer treated as empty. Administrators see an error, the backup is used if available, and the broken file is kept with a “.corrupt-” suffix when saving.
  • “0” can now be saved as a value and displayed with the shortcode.
  • Values containing HTML entities such as <b> are no longer changed when saving the settings page again.
  • Fixed a PHP warning when [cgv] is used without a variable name.
  • Improved input handling on the settings page.

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

Try other plugins