• pk-71

    (@pauljohnknight)


    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? Any help or suggestions greatly appreciated.

    • This topic was modified 5 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • 1naveengiri

    (@1naveengiri)

    Hi @pauljohnknight

    It seems like some plugin conflicts. maybe you using some plugin on live that allow all access to admin and so blocking the disallow edit code.

    Please deactivate plugins/themes one by one and check.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘WP Snippet to Hide Theme Editor In Dashboard Only Works On LocalHost Site’ is closed to new replies.