Skip to content

Instantly share code, notes, and snippets.

@jpmarchand jpmarchand/disable-editors.php Secret
Last active Jun 1, 2017

Embed
What would you like to do?
Disable theme and plugin editors from WordPress admin panel. Source: http://www.wpbeginner.com/wp-tutorials/how-to-disable-theme-and-plugin-editors-from-wordpress-admin-panel/
<?php
//* Disable both theme and plugin editors from WordPress admin panel
define( 'DISALLOW_FILE_EDIT', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.