
If you’re a freelancer who often install WordPress on your clients websites, chances are that you don’t want them to be able to edit their theme. Here is a simple code snippet to hide the Theme Editor link from the dashboard so you can be sure that your clients won’t destroy their theme.






WPRecipes.com is hosted by VidaHost. Use our exclusive coupon CATSWHOCODE to get a 10% discount on hosting! 








7 Responses
Or, you could just use this line of code in your wp-config.php file:
define('DISALLOW_FILE_EDIT', TRUE);Another option would be to define it in the wp-config.php file, this would be a better solution as its site wide regardless if the theme is changed
define( ‘DISALLOW_FILE_EDIT’, true);
You beat me to it Nathan
I like that solution better than the wp-config one, because it will allows to retain the editor for one particular admin.
You can get that modification as automatized as with wp-config in putting it in a plugin in the “magic” mu-plugins directory.
Obviously not as clean to do this, but for those who aren’t comfortable getting into the code there are plenty of plugins that can allow you to do this. White Label CMS is the main one that springs to mind but there are plenty of premium ones flying around on CodeCanyon and elsewhere.
(Note: If you are creating a WordPress site for a client you almost definitely should be comfortable with the code.)
What is the free wp plugin can do the jobe, James?
Thx for this useful feature. That will block the final user/client to messaround with the basic theme files… great
Trackbacks: