WP Snippet to Hide Theme Editor In Dashboard Only Works On LocalHost Site
I want to remove the Theme Editor in the WP Dashboard that is located under Dashboard > Appearance > Theme Editor. The code I’m using in my
config.php file in the root of my site is :
Which I place just before the line:
/*That’s all, stop editing! Happy blogging. */
This works on the localhost installation, but not on the live site?