How To Disallow theme switching


Sponsored Links






For some reason we need to Disallow theme switching in WordPress, why we need disable this featured? There are some reason why we should do it, such as Our WordPress powered site is Final Version, so we didn’t need to change the theme. Or The client “explored” the WordPress dashboard and “accidentally” switched the theme.

Disallow Theme Switcing WordPress

Disallow Theme Switcing WordPress


Using WordPress actions, we can easily remove the “themes” menu and consequently prevent the risk of having a client switching the theme.

Let’s get started, all we need to do only put several code on functions.php below

add_action('admin_init', 'remove_theme_menus');
function remove_theme_menus() {
	global $submenu;
	unset($submenu['themes.php'][5]);
	unset($submenu['themes.php'][15]);
}

And done, you has disallow theme switching on WordPress. Thanks for this script

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

Download KB Robots.txt WordPress Plugin

When search engine visit our site, the first file that need to be checked is robots.txt, we need to tweak robots.txt to make it suitable for any search engine. We can restricted some search engine and allow the others using … Read More

Choose Perfect WordPress Theme

There are a lot of Premium WordPress Themes available on the net, our simple question is. Does we really need it? Or we can use Free Themes that also available on the net. To Answer the simple question is, what's … Read More

Tutorial and Trick Upload WordPress Theme

Now, Added New WordPress Theme much easier, there are so many ways to do this. The easiest method is Browse on your WordPress Dashboard Appearance Panel > Add New Themes and select some options field your query and do search … Read More

How To Use WordPress shortcode in theme files

Our recent client need some plugin that display the code using shortcode, like we all know, mostly shortcode must be injected or put on post content. Sometime we have another problem, we need to use the shortcode but not in … Read More

optimize arras theme for loading speed - WordPress Tricks & Tips

For some reason we need to Disallow theme switching in WordPress, why we need disable this featured? There are some reason why we should do it, such as Our WordPress read more

Source: http://wptricks.net/archives/optimize-arras-theme-for-loading-speed?amp

how to customize tanzaku theme - WordPress Tricks & Tips

For some reason we need to Disallow theme switching in WordPress, why we need disable this featured? There are some reason why we should do it, such as Our WordPress read more

Source: http://wptricks.net/archives/how-to-customize-tanzaku-theme?amp

Customize your Wordpress Dashboard - Hyves

Disallow theme switching. If you?ve created WordPress themes for your clients you could encounter the following problem: The client ?explored? the WordPress dashboard and read more

Source: http://www.hyves.nl/blog/nieuwste/alltime/blog/39137718/Customize_your_Wordpress_Dashboard/5uo3/

Switching Themes in Drupal 7 module (mobile tools) - Stack Overflow

for Drupal 7 to work but it appears it's not switching global $custom_theme, $conf; // check if theme switching is Drupal - disallow modification of certain accounts read more

Source: http://stackoverflow.com/questions/5151711/switching-themes-in-drupal-7-module-mobile-tools

Indexhibit Like Theme For Wordpress - JavaScript Window

For some reason we need to Disallow theme switching in WordPress, why we need disable this featured image featured? Like we all know Featured Images is new features that read more

Source: http://javascript-window.com/indexhibit-like-theme-for-wordpress.html


5 Responses to How To Disallow theme switching

  1. Pingback: Tweets that mention How To Disallow theme switching #tricks #actions #client #disallow #explored -- Topsy.com

  2. Pingback: Tweets that mention How To Disallow theme switching # WordPress Tricks & Tips -- Topsy.com

  3. Pingback: Daily Tip: How to Disable Theme Changing in the WordPress Dashboard - WordPress MU and BuddyPress plugins, themes, support, tips and how to's

  4. Paul Geisler says:

    Thanks for the info!

    May be it’s better to disable the whole menu point ‘Appearance’

    function remove_theme_menus() {

    global $menu;

    // removes ‘Appearance’
    unset($menu[60]);

    }
    add_action(‘admin_init’, ‘remove_theme_menus’);

  5. Pingback: Choose Perfect WordPress Theme | WordPress News Wire

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>