This article goes over how to enable or disable automatic updates for a WordPress installation. This option is modified in the WordPress configuration file wp-config.php. Access to cPanel will be needed to complete the steps below.
Enable or Disable Automatic Updates
- Log into the appropriate cPanel
- Click the File Manager icon, located in the Files section
- Locate the document root for the domain name in question
- Locate the wp-config.php for the website to enable/disable automatic updates for and right-click the file
TIP: The wp-config.php file is in the document root of the domain. - Click Edit after right-clicking the wp-config.php file
- Add one of the WordPress definitions for automatic updates as shown below above the line in wp-config.php that states:
/* That's all, stop editing! Happy publishing. */
- Click Save Changes
WordPress Automatic Update Definitions
- Always Automatically Update WordPress
- This would automatically upgrade WordPress to the latest version
define( 'WP_AUTO_UPDATE_CORE', true);
- This would automatically upgrade WordPress to the latest version
- Automatically Update WordPress to Minor Releases Only
- This will only update WordPress from 5.x.x to the next update, meaning it will not upgrade to 6.x
define( 'WP_AUTO_UPDATE_CORE', 'minor');
- This will only update WordPress from 5.x.x to the next update, meaning it will not upgrade to 6.x
- Disable Automatic Updates/Upgrades to WordPress Core
- Turns off any automatic update for WordPress Core, meaning that no updates to the WordPress Core version will happen
define( 'WP_AUTO_UPDATE_CORE', false);
- Turns off any automatic update for WordPress Core, meaning that no updates to the WordPress Core version will happen
- Fully Disable All Automatic Updates
- This will disable all automatic updates/upgrades for the WordPress Core, themes, and plugins, meaning nothing will be updated
define( 'AUTOMATIC_UPDATER_DISABLED', true );
- This will disable all automatic updates/upgrades for the WordPress Core, themes, and plugins, meaning nothing will be updated
Comments
0 comments
Article is closed for comments.