How to Disable Theme Changing in the WordPress Dashboard

How to Disable Theme Changing in the WordPress Dashboard

Don’t want clients messing around with themes on their site?

If you want to keep your WordPress theme set as it is and make sure that your client is not able to experiment with theme changes, add this to your functions.php file:

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

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

This snippet will remove Themes from the Dashboard >> Appearance menu.

Source: WPTricks.net