WordPress wp-config.php settings

Allow uploading not registered files

define('ALLOW_UNFILTERED_UPLOADS', true);

Disable All Updates

define( 'AUTOMATIC_UPDATER_DISABLED', true );

To enable automatic updates

define( 'WP_AUTO_UPDATE_CORE', true );

WP_SITEURL

define( 'WP_SITEURL', 'http://example.com/wordpress' );

WP_HOME

define( 'WP_HOME', 'http://example.com/wordpress' );

Disable the cron entirely by setting DISABLE_WP_CRON to true.

define( 'DISABLE_WP_CRON', true );

Make sure a cron process cannot run more than once every WP_CRON_LOCK_TIMEOUT seconds.

define( 'WP_CRON_LOCK_TIMEOUT', 60 );

Empty Trash

define( 'EMPTY_TRASH_DAYS', 30 ); // 30 days

define( 'EMPTY_TRASH_DAYS', 0 ); // Zero days

Automatic Database Optimizing

define( 'WP_ALLOW_REPAIR', true );

Require SSL for Admin and Logins

define( 'FORCE_SSL_ADMIN', true );

Cleanup Image Edits

define( 'IMAGE_EDIT_OVERWRITE', true );

Disable unfiltered HTML for all users

define( 'DISALLOW_UNFILTERED_HTML', true );

Increase PHP Memory

define( 'WP_MEMORY_LIMIT', '64M' );

Set MAX memory limit

define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Source: https://codex.wordpress.org/Editing_wp-config.php#Disable_Cron_and_Cron_Timeout

Source: https://codex.wordpress.org/Configuring_Automatic_Background_Updates

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *