Last active
August 29, 2015 14:24
-
-
Save madalinignisca/aa07f400e6871ba2bd30 to your computer and use it in GitHub Desktop.
WordPress wp-config.php extra snippets for better performance and security
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
<?php // Use this when you use normal web cron and scheduled posts don't get published | |
define( 'ALTERNATE_WP_CRON', true ); |
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
<?php // Disable all core updates: | |
define( 'WP_AUTO_UPDATE_CORE', false ); |
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
<?php // disable running cron from the web automattic | |
define('DISABLE_WP_CRON', true); |
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
<?php // disallow installation of themes or plugins | |
define( 'DISALLOW_FILE_MODS', true ); |
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
<?php // disallow themes or plugins file edits | |
define( 'DISALLOW_FILE_EDIT', true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment