Do not want to bother with maintenance of your site and want to automatically update WordPress for major versions? Let’s take a simple way.

The system automatically installs small updates without even informing the site owner. Usually these are security improvements, which should be applied necessarily.

However, the system does not automatically update when there is a new major (or main) release. You will have to do it manually.

Let’s see how easy it is to automate

How do automatic updates in WordPress work?

This feature has been working since version 3.7. Its purpose is to improve the security of web resources.

WordPress allows you to disable automatic updates. But we do not recommend it, because your site becomes vulnerable to hackers.

On the other hand, if you serve several sites, it will be time consuming to update them all.

Let’s look at 2 ways.

Preparing for automatic updates of WordPress

The most important level of security that every site should have is regular backup. And it does not matter if the system is updated by automatic or manual.
We recommend using the free UpdraftPlus plugin. It can save copies of files and databases both locally and remotely Works with Google Drive and Dropbox.

Once you have set up automatic backup of WordPress, you can enable automatic updating of WordPress for major versions.

Method 1: Automatic update with the plugin

This method is recommended for novice users.

First, install the Easy Updates Manager extension.

After activation in the admin, open Console > Update Options.

In the Automatic updates section, select Custom and click on Enable Major Releases.

The plugin will automatically save the settings.

Here we go!

Method 2: Automatic manual update

We will need wp-config.php, which is in the main directory of the site. If you want to change this file on a working site, use FTP to access the server.
And add the code

define( ‘WP_AUTO_UPDATE_CORE’, true );

Next, in the file functions.php of the active WP theme, insert a line

add_filter( ‘allow_dev_auto_core_updates’, ‘__return_false’ );

Now your WordPress site will be automatically updated, without your participation, whenever a new version is available.