Skip to content

Instantly share code, notes, and snippets.

@devkabir
Forked from yanknudtskov/disallow-file-mods.php
Created June 28, 2021 17:03
Show Gist options
  • Select an option

  • Save devkabir/3640df3661344b2df82505d0a4bc13ec to your computer and use it in GitHub Desktop.

Select an option

Save devkabir/3640df3661344b2df82505d0a4bc13ec to your computer and use it in GitHub Desktop.
Disallow File Mods Be careful using this, as it will disable the ability to update both core, plugins and themes in the Wordpress Admin. It's very helpful for security or locking a website into a static version.
define('DISALLOW_FILE_MODS', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment