How to Disable Theme ( and Plugin ) Editor from WordPress Dashboard?

disable-editing-editor-files

To prevent editing the theme (and plugins) directly through the editor. You can make the following changes through wp-config.php

  • Open up your wp-config.php.
  • Anywhere above the line in that file that says
    /* That’s all, stop editing! Happy publishing. */
  • add this line
define( 'DISALLOW_FILE_EDIT', true );
  • Save and upload the file.
  • Check your WordPress dashboard, the links at Appearance > Editor and Plugins > Editor will no longer be available (even on an Administrator account).
Please follow and like us:

Related Posts

Leave a Reply

Share