Disallow File Editing in WordPress Jul 10, 2020 | Security, WordPress define('DISALLOW_FILE_EDIT', true); Add this to the wp-config.php file at the very end. This will disallow file editing so no one will be able to modify any of the files through the WordPress backend.