Disable WordPress Theme Change

If you are running multi-authored wordpress blog, and you are having issues with sharing Admin privilege with your editors and wordpress theme designers, then you must disable theme change in wordpress blog. Sometimes it happens that your blog designers, without consulting you changes your blog design by changing the wordpress theme.

Disable WordPress Theme Change

There are lot of wordpress plugins which enables you to define role of different authors using which you can limit the privileges linked to your authors, blog theme designers and developers. This is easy way to take control over theme change and other critical options that you don’t want to be handled by any other staff of your blog.

Recommended Reading : Customize WordPress Admin Page

WordPress Theme is one of the must sensitive part of your blog and you would never like someone to change it without your permission. Of course no-one like it, and so I am writing this tutorial. It will help you disabling access of WordPress theme page to any other user except the Super-Admin User, that is you.

What we will be doing is removing the Themes link in the WordPress Admin Dashboard for the Users, having roles other than Super-Admin Users. So that users cannot directly go into the Themes Page on WordPress Dashboard.

What you need to do is just place this code in your functions.php file anywhere.

add_action('admin_init', 'disable_changing_theme_for_non_admin');
function disable_changing_theme_for_non_admin() {
global $submenu, $userdata;
if ($userdata->ID != 1) {

What this will do is remove the themes link simply and even those who have admin privileges will not be able to see the themes link under Appearance menu and therefore, they will not be able to change wordpress theme of your blog. And since you are only set to Super-Admin role, you will only be the one to see that Themes link under Appearance menu.

Jitendra Vaswani

Jitendra Vaswani is the founder of SchemaNinja WordPress Plugin, prior to SchemaNinja he is the founder of many internet marketing blogs BloggersIdeas.com, Newsmartwave, and Digiexe.com. He is successful online marketer & award winning digital marketing consultant. He has been featured on HuffingtonPost, BusinessWorld, YourStory, Payoneer, Lifehacker & other leading publication as a successful blogger & digital marketer. Jitendra Vaswani is also a frequent speaker & having 5+ yrs experience of in Digital Marketing field. Check out his portfolio( jitendra.co). Find him on Twitter, & Facebook.

Leave a Comment