Custom Global Variables
Easily create custom variables that can be accessed globally in Wordpress and PHP. Retrieval of information is extremely fast, with no database calls.
Choix
Yes — Custom Global Variables is a safe, well-maintained plugin to use in 2026. It runs on 5K+ sites, is rated 5/5 and was last updated 3 weeks ago, and scores 84/100 on our health check.
- Développé activement — Dernière mise à jour il y a 3 semaines
- Testé avec le dernier WordPress (7.1)
- Momentum — downloads up 73.8% vs the previous 30 days
Téléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Custom Global Variables stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| custom global variables | #1 |
| options | #97 |
| settings | #35 |
| shortcodes | #87 |
| variables | #1 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 5 from 10 reviews
About Custom Global Variables
From the official readme · v1.1.4Description
Create your own custom variables to manage information on your website such as:
- Phone numbers
- Adresses
- 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'] ?>
Installation
- Téléchargez les fichiers du plug-in dans le répertoire
/wp-content/plugins/plugin-nameou installez directement le plugin via l'écran des plugins WordPress. - Activez le plugin via l'écran "Plugins" dans WordPress
- Use the
Settings -> Custom Global Variablesscreen to define your variables
Journal de modifications
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
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
FAQ
Custom Global Variables: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Custom Global Variables free?
Yes. Custom Global Variables is free to download and use from the official WordPress.org plugin directory.
Is Custom Global Variables safe to use in 2026?
Yes — Custom Global Variables is a safe, well-maintained plugin to use in 2026. It runs on 5K+ sites, is rated 5/5 and was last updated 3 weeks ago, and scores 84/100 on our health check.
How many websites use Custom Global Variables?
Custom Global Variables is active on 5K+ WordPress websites and has been downloaded 29,312 times since it launched in April 2016. It was downloaded 4,640 times in the last 30 days.
Does Custom Global Variables work with WordPress 7.1?
Yes. The developer has tested Custom Global Variables up to WordPress 7.1.5, the latest release. It requires WordPress 3.0.1 or newer.
What PHP version does Custom Global Variables need?
Custom Global Variables requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Custom Global Variables last updated?
The latest version, 1.1.4, was released on November 2, 2026 (3 weeks ago).
Who makes Custom Global Variables?
Custom Global Variables is developed and maintained by oden7777.
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit

