Skip to content

Instantly share code, notes, and snippets.

@hbaker
Created November 29, 2017 08:51
Show Gist options
  • Save hbaker/b85b30536c5606f7d0a6c977c82a2db9 to your computer and use it in GitHub Desktop.
Save hbaker/b85b30536c5606f7d0a6c977c82a2db9 to your computer and use it in GitHub Desktop.
WordPress - How to Prevent Core, Theme, and Plugin File Editing
// PREVENT WORDPRESS FILE EDITING
define('DISALLOW_FILE_EDIT', true);
@hbaker
Copy link
Author

hbaker commented Nov 29, 2017

How to Prevent File Editing

Adding this to the bottom of your wp-config.php file will block someone, even if they've obtained admin access, from maliciously editing files in your WordPress installation, including plugins and themes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment