Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Turn off the theme and plugin file editors

Removes the code editors under Appearance and Plugins, so a stolen admin login can’t be used to write PHP into your theme or plugin files.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Tested with WordPress 7.1
PHP
<?php

// The same as adding define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php.
if ( ! defined( 'DISALLOW_FILE_EDIT' ) ) {
	define( 'DISALLOW_FILE_EDIT', true );
}

In these packs

  • Harden WordPress: Close the doors attackers try first: XML-RPC, user name discovery, the file editors, revealing login errors.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.