How to disable Theme Editor and Plugin Editor in WordPress admin panel?

PHP 0 Comments

Warning: Trying to access array offset on value of type null in /home/codenski/public_html/wp-content/themes/simple-east/content.php on line 37

WordPress allows you to edit your plugin and theme files directly through its admin panel. Although, this is dangerous because a single typo can render your website blank. Moreover, you may want to give admin access to people that don’t need to edit the code.

All you need to do is to disable the Theme Editor and the Plugin Editor. To do that, open your wp-config.php file and add the following code to it:

define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_FILE_MODS', true );

Warning: Trying to access array offset on value of type null in /home/codenski/public_html/wp-content/themes/simple-east/content.php on line 74

Leave a Reply

Your email address will not be published.