How to Disable Theme & Plugin Editors from WordPress Admin Panel?

Do you want to disable the theme and plugin editors from the WordPress admin panel?

By default, WordPress comes with built-in theme and plugin editors. This editor allows you to edit your theme and plugin files directly from the WordPress dashboard.

This feature may sound useful, but it also comes with enough amount of risk. Wrong code edit can break your site, Unauthorized person can edit your theme and plugin files if gained access through hacking. and much more.

Therefore, to improve WordPress security, we recommend removing the built-in file editors from the WordPress dashboard. You can easily disable the editors using the below code.

 * Disable the theme / plugin text editors in WordPress Admin Area
function maverick_display_theme_plugin_editors_wordpress()
add_action('init', 'maverick_display_theme_plugin_editors_wordpress');

Leave a Reply

Your email address will not be published. Required fields are marked *