@rafaqatali
By default the iTSec plugin will enable the Disable File Editor setting in the WordPress Tweaks module.
This is one of the recommended settings which is auto enabled as part of the Security Check module.
Hi, you can put this below code in my wp-config.php file,
define( ‘DISALLOW_FILE_EDIT’, TRUE );
define( ‘DISALLOW_FILE_MODS’, TRUE );
@shital-patel
Actually the iTSec plugin Disable File Editor setting in the WordPress Tweaks module will do that (for DISALLOW_FILE_EDIT only) for you.
So there is no need to edit the wp-config.php file yourself (unless you want to set the DISALLOW_FILE_MODS constant).
(@rafaqatali)
Please take a look at the content of the wp-config.php file.
Manually remove the following lines if they exist:
/* BEGIN iThemes Security – Do not modify or remove this line*/
// iThemes Security Config Details: 2
define( ‘DISALLOW_FILE_EDIT’, true ); // Disable File Editor – Security > Settings > WordPress Tweaks > File Editor
/* END iThemes Security – Do not modify or remove this line*/
OR
Go to plugin better-wp-security\core\modules\wordpress-tweaks\config-generators.php
@shital-patel
No, no no !
It says:
/* BEGIN iThemes Security – Do not modify or remove this line*/
...
/* END iThemes Security – Do not modify or remove this line*/
The only and correct way of removing these lines is by disabling the iTSec plugin Disable File Editor setting in the WordPress Tweaks module (and saving the settings).
@rafaqatali
Please ignore the @shital-patel posts. She means well and her input is appreciated but she needs to do her homework first.
So @pronl kindly elaborate the steps one by one to enable Theme Editor option in the WordPress Dashboard.
-
This reply was modified 4 years, 1 month ago by
Rafaqat Ali. Reason: just to attach hypelink