Skip to content

Instantly share code, notes, and snippets.

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