Home / Disable Plugin & Theme Editor
Duplicate Snippet

Embed Snippet on Your Site

Disable Plugin & Theme Editor

Prevent users from using the Plugin & Theme file editor.

500+
Code Preview
php
<?php
// Disable the Plugin and Theme Editor
if ( ! defined( 'DISALLOW_FILE_EDIT' ) ) {
	define( 'DISALLOW_FILE_EDIT', true );
}

Comments

Add a Comment