WP Snippet to Hide Theme Editor In Dashboard Only Works On LocalHost Site

Question

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 :

define('DISALLOW_FILE_EDIT', true);

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?

0
, , , The Chewy 2 years 2019-10-25T14:28:51-05:00 0 Answers 84 views 0

Leave an answer

Browse
Browse