Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Last active January 3, 2016 18:49
Show Gist options
  • Save rickrduncan/8504831 to your computer and use it in GitHub Desktop.
Save rickrduncan/8504831 to your computer and use it in GitHub Desktop.
Remove 'Editor' from the 'Appearance' menu to keep users from editing your theme and plugin files from inside of WordPress.
<?php
//* Do NOT include the opening php tag
//* Remove 'Editor' from 'Appearance' Menu.
//* This stops users and hackers from being able to edit theme & plugiin files from within the WordPress dashboard.
if ( ! defined( 'DISALLOW_FILE_EDIT' ) )
define( 'DISALLOW_FILE_EDIT', true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment