Conditional Themes
Conditional Themes is an API to switch the themes on certain conditions.
Envisager une alternative
Conditional Themes shows warning signs in 2026 — compare the alternatives below before installing. It runs on 60+ sites, is rated 4.9/5 and was last updated 7 years ago, and scores 37/100 on our health check.
- Petite base d'utilisateurs (60+ installations actives)
- Pas de mise à jour dans 7 ans
- Uniquement testé jusqu'à WordPress 5,2 (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 Conditional Themes stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| api | >100 |
| INTERRUPTEUR | >100 |
| thème | >100 |
| Theme Switcher | >100 |
| themes | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 4.9 sur 9 avis
About Conditional Themes
From the official readme · v0.6Description
Conditional Themes is an API to switch the themes on certain conditions.
Usage
Write an another plugin file and use the Conditional Themes API as the example below:
add_action('plugins_loaded', 'my_conditional_themes_setup', 100);
function my_conditional_themes_setup()
{
// Switch to Twenty Eleven theme if the visitor use Internet Explorer.
Conditional_Themes_Manager::register('twentyeleven', function() {
global $is_IE;
return (bool) $is_IE;
});
// Switch to Twenty Thirteen theme if the user has administrator role.
Conditional_Themes_Manager::register('twentythirteen', function() {
return current_user_can('administrator');
});
// Switch to a custom theme if the visitor use a mobile device.
Conditional_Themes_Manager::register('mobile', 'wp_is_mobile');
}
Another example, With enabling persistent mode.
add_action('plugins_loaded', 'my_conditional_themes_setup', 100);
function my_conditional_themes_setup()
{
// Enable the switcher persistent mode.
Conditional_Themes_Manager::set_option('persistent', true);
// Switch to Twenty Sixteen theme when we being on 2016.
Conditional_Themes_Manager::register('twentysixteen', function() {
return (date('Y') == 2016);
});
// Switch to Twenty Fifteen theme when the site reaches 500 post.
Conditional_Themes_Manager::register('twentyfifteen', function() {
return ((int) wp_count_posts() > 500);
});
}
Note: You can use Code Snippets plugin to add the code snippets to your site.
Contributing
Developers can contribute to the source code on the Github Repository.
Installation
- Upload and install the plugin
- Use the plugin API to powerful your project.
Journal de modifications
0.6
- Better code style formatting.
0.4
- Fix updating switched theme sidebars widgets bug, props @Offereins.
- Better classes and code organization.
0.4
- Fix the switched theme sidebars widgets bug, props @joyously.
- Better functions names and code organization.
0.3
- Add a new feature allow to switch the themes persistently.
- Improve the performance by excluding the original theme from being switched.
0.2
- Cleaner code and minor fixes.
0.1
- The Initial version.
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 Conditional Themes alternatives
Tous les plugins API →FAQ
Conditional Themes: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Conditional Themes free?
Yes. Conditional Themes is free to download and use from the official WordPress.org plugin directory.
Is Conditional Themes safe to use in 2026?
Conditional Themes shows warning signs in 2026 — compare the alternatives below before installing. It runs on 60+ sites, is rated 4.9/5 and was last updated 7 years ago, and scores 37/100 on our health check.
How many websites use Conditional Themes?
Conditional Themes is active on 60+ WordPress websites and has been downloaded 5,259 times since it launched in October 2013. It was downloaded 121 times in the last 30 days.
Does Conditional Themes work with WordPress 7.1?
Conditional Themes is officially tested up to WordPress 5.2.31, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Conditional Themes last updated?
The latest version, 0.6, was released on July 19, 2019 (7 years ago).
Who makes Conditional Themes?
Conditional Themes is developed and maintained by Nashwan D.
What are the best alternatives to Conditional Themes?
The most popular alternatives to Conditional Themes are WP Consent API (300K+ installs), Disable REST API (80K+ installs) and Mailgun for WordPress (70K+ 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
