KrisChase.com

Remove the ability to edit theme in WordPress admin

Posted in Web Development on 06.10.2015 by @chasebadkids

When developing sites for clients, sometimes you want the ability to prevent the end user from being able to edit/access the theme source code from the admin panel “Appearance -> Editor” area.  This snippet works great for just that!

Simply add this line of code to your WordPress themes functions.php file or if you’re using roots, this belongs in custom.php

 

Enjoy!

Menu