DISALLOW_FILE_EDIT doesn’t work
-
Hey there chaps,
any idea why file_edit or file_mods to true, somehow WordPress still shows and allows Plugin Editor and Theme Editor to be used directly from the Admin Panel?
Just to make clear – I would like to disable them completely. I don’t need to edit any file from the website. I’d rather do that manually and completely disable those functions.
Usually, the code below works… (see screenshot: https://i.ibb.co/5ksfDJ1/Capture.jpg)
define( 'DISALLOW_FILE_EDIT', true ); define( 'DISALLOW_FILE_MODS', true );
Any suggestions how to solve that or what is going on? Why is not working? For now, I’ve just deleted both of the files file-editor.php and theme-editor.php from the wp-admin folder, just to be safe.
Regards,
Rasu
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘DISALLOW_FILE_EDIT doesn’t work’ is closed to new replies.