Created
April 11, 2024 03:43
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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