Beta Flags … now with A/B Testing!
Beta Flags allow developers to manage the release of new features. Instead of having code execute as soon as it is deployed to the production environment. You can now wrap it in a beta flag conditional and activate it…
Envisager une alternative
Beta Flags … now with A/B Testi… shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 8 years ago, and scores 21/100 on our health check.
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 8 ans
- Uniquement testé jusqu'à WordPress 4,9 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTé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 Beta Flags … now with A/B T… stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| a/b testing | >100 |
| beta flags | >100 |
| developers | >100 |
| feature flags | >100 |
About Beta Flags … now with A/B Testing!
From the official readme · v1.3.0Description
Beta Flags allow developers to manage the release of new features. Instead of having code execute as soon as it is deployed to the production environment. You can now wrap it in a beta flag conditional and activate it from the back end.
A/B Testing works very similarly, except that instead of turning a code block on or off, they allow you to turn it on 50% of the time. This uses a slight variant on the URL used to display a post or term page, which can then be tracked in an analytics service (e.g. Adobe Omniture, Google 360).
The Basics of Beta Flags
To create a new beta flag, open the configuration JSON file. A copy of this file is provided with this plugin and is stored at data/beta-flags.json. You may prefer to create a copy in the root of your theme, the same folder that contains functions.php ([theme]/beta-flags.json).
The JSON file follows the format below:
{
"flags": {
"sidebar_web": {
"title": "Beta Flags IN THEME",
"description": "Add a sidebar to the post page",
"author": "Charles Jaimet"
},
"library_admin": {
"title": "Beta Flags QA: Plugin Admin Test",
"description": "For Beta Flag testing in admin interface",
"author": "Charles Jaimet"
}
}
}
Each flag is defined by a key (e.g. sidebar_web, library_admin), representing an object with a title, description, and author. The key must be unique, and is used throughout to identify the given flag.
Once you have activated the plugin (there are no special instructions for this), navigate to Tools > Beta Flags in the admin interface (/wp-admin/tools.php?page=beta-flags). Here you will find the flags from your JSON file if you have created it correctly.
A note about JSON, the easiest mistake to make is to put a comma after the last element in an array or object. This will break the JSON but is easy enough to fix when you know what to look for. Kinda like forgetting a semi-colon in PHP. Stupid semi-colons…
When you first load the plugin, and any time after you update the JSON file, you should return to this admin screen. New flags are disabled by default, and can only be enabled here. Check the box in the Enabled column beside each flag you want to turn on. Click Save Changes when done.
In your theme or other plugins, you can use these beta flag keys to control feature execution by wrapping a conditional around the relevant code. Try to group your wrapped code into a single function, method, or class to avoid littering your theme with beta flag conditionals.
The public function beta_flag_enabled( $key ) will return a true|false value if the beta flag is enabled.
Some examples:
if ( beta_flag_enabled( 'sidebar_web' ) ) {
get_sidebar();
}
if ( beta_flag_enabled( 'new_design' ) ) {
wp_register_style( 'my_styles', '/assets/my_styles.css', array(), '1.0.0', false );
wp_enqueue_style( 'my_styles' );
}
if ( beta_flag_enabled( 'popup_offer' ) ) {
new PopupOffer( '10% Off', 0.1 );
}
I suggest using beta flag keys that make sense and convey their purpose. Adding a version number never hurt, either. There is no character limit, so go nuts.
if ( beta_flag_enabled( 'revised_sticky_video_for_youtube_widgets_v.1.0.5' ) ) {
get_sidebar();
}
A/B Testing
Now you have your beta flags and you’ve embedded them in your code. The feature works as expected and you have it running on production. Is it better than what it replaced?
Enter A/B testing.
Check the A/B Test box beside the flag you want to test in the admin interface (see screen shot below), and check the “Enable beta testing” box at the bottom of the flag list, then click “Save Changes”.
Go to your website and refresh a few times. You will start to see some term and post links appearing with ?ab=1 appended to their URLs. (e.g. http://local.wordpress.test/hello-world/?ab=1).
When a visitor follows one of these links they will see your page with the beta flag disabled. When they follow the normal URL without the query string (e.g. http://local.wordpress.test/hello-world/) they will see the page with the beta flag enabled.
The query string is randomly appended 50% of time, so two visitors may follow the same link in the sidebar or menu, and one will get the flag turned on and one will get it turned off.
Because the URL matches the state of the beta flag, you will be able to see in your analytics service which experience visitors engaged with more. Implementing an effective A/B testing campaign is outside the scope of a README file but there are plenty of good reference books and sites.
As long as the “Enable beta testing” box is checked, post and term URLs on your site will get this query string treatment. Only beta flags that have the A/B Test box checked will be affected. Those with it unchecked will be controlled strictly by their Enabled box. Note also that checking A/B Test on a flag that is disabled will have no effect. Off is off.
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.
Best Beta Flags … now with A/B Tes… alternatives
All a/b testing plugins →FAQ
Beta Flags … now with A/B Testing!: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Beta Flags … now with A/B Testi… free?
Yes. Beta Flags … now with A/B Testi… is free to download and use from the official WordPress.org plugin directory.
Is Beta Flags … now with A/B Testi… safe to use in 2026?
Beta Flags … now with A/B Testi… shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 8 years ago, and scores 21/100 on our health check.
How many websites use Beta Flags … now with A/B Testi…?
Beta Flags … now with A/B Testi… is active on <10 WordPress websites and has been downloaded 1,619 times since it launched in October 2018. It was downloaded 41 times in the last 30 days.
Does Beta Flags … now with A/B Testi… work with WordPress 7.1?
Beta Flags … now with A/B Testi… is officially tested up to WordPress 4.9.36, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Beta Flags … now with A/B Testi… last updated?
The latest version, 1.3.0, was released on November 2, 2018 (8 years ago).
Who makes Beta Flags … now with A/B Testi…?
Beta Flags … now with A/B Testi… is developed and maintained by Charles Jaimet.
What are the best alternatives to Beta Flags … now with A/B Testi…?
The most popular alternatives to Beta Flags … now with A/B Testi… are EasyTest (10K+ installs), Unbounce Landing Pages (10K+ installs) and Sigmize: A/B Testing, Sessi… (6K+ installs).
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


