Disable File Editing inside WordPress

Posted on October 5, 2016 at 4:27 pm

We highly recommend to disable file editing via WordPress dashboard. A malicious user may edit a PHP file of your theme and add malware code to infect your visitors. Or you can accidentally edit a PHP file and screw up your website layout. To disable file editing inside WordPress add this to your wp-config.php file (above the “ABSPATH” otherwise it won’t work):

define( 'DISALLOW_FILE_EDIT', true );

Updated on December 11, 2016 at 11:53 am

Receive updates via email

Other Posts

Updated Posts