A simple API to switch the themes on certain conditions.
As of April 2026, Conditional Themes is a WordPress api plugin with 50 active installations and a 4.9/5 rating from 9 reviews. It has been downloaded 4.8K+ times in total. Requires WordPress 3.4+ and PHP false+. Available on WordPress.org since 2013. Last updated 6 years ago — may have compatibility concerns. Top alternative: WP Consent API.
Conditional Themes is an API to switch the themes on certain conditions.
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('mob…| WordPress | 3.4+ requiredTested up to 5.2.24 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.