Disable the Plugin and Theme Editor
Access to plugin and theme code is available in the WordPress dashboard. You can do one thing to protect the site from trifile to disable the both of these editors. Open your wp-config.php file and add the following constant:
define('DISALLOW_FILE_EDIT',true);
Now, when you are in the dashboard it is impossible to access the theme or plugin editor, even if you are admin.
define('DISALLOW_FILE_EDIT',true);
Now, when you are in the dashboard it is impossible to access the theme or plugin editor, even if you are admin.