Skip to content

Instantly share code, notes, and snippets.

@thetwopct
Created April 11, 2024 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thetwopct/e356895c9919aced06cf8c440293e907 to your computer and use it in GitHub Desktop.
Save thetwopct/e356895c9919aced06cf8c440293e907 to your computer and use it in GitHub Desktop.
wp-config.php constants to stop new WordPress themes, stop Theme and Plugin Editing (version control/Git)
// Disable Theme and Plugin Editor
define('DISALLOW_FILE_EDIT', true);
// Stop new themes being installed automatically i.e. twentytwentyfour
define('CORE_UPGRADE_SKIP_NEW_BUNDLED', true);
// Disable core, plugins and theme updates (only update via version control)
define('DISALLOW_FILE_MODS', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment