65

How to Disable Theme and Plugin Editors in WordPress

Powered by WPCodeBox

When activated, this WordPress code snippet disallows the use of both the plugin and theme editors, enhancing site security and preventing unauthorized code modifications.


<?php

define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_FILE_MODS', true );

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.