How To Enable Automatic Updates In WordPress Only For Big Releases?

enable automatic updates in wordpress

WordPress comes with many options and here you can set the automatic updates. One of our readers asked how to enable automatic updates in WordPress.

There are many things which should be learned before you decide to enable it. If you ever do any change in your website then it’s possible that an automatic update can break your website.

But if you’re sure about everything then go for it.

In this tutorial, you will learn the way to enable automatic updates in WordPress only for major releases. It means that the code will only work when WordPress release any major version.

Add The Code In the functions.php File of Your Theme.

Before going further, I must let you know that if you are using any third party plugin or any customized theme then after the automatic update, it’s possible that the plugins won’t work properly.

Before you update your WordPress version, you always check the working of all the plugins. Not every plugin keeps updated along with the WordPress version.

There are some benefits too. As you always read, you should never keep the old version of WordPress to your website.

So why can’t you enable the updates? Just go for it.

Add the code shown below in the functions.php file of your theme.

define( ‘WP_AUTO_UPDATE_CORE’, true );

This code will enable all the core updates of WordPress. But the thing is that you don’t need to enable the development updates. So you have to disable those updates.

Just add another line in the file.

add_filter( ‘allow_dev_auto_core_updates’, ‘__return_false’ );

This code will disable the development updates.

Now you have successfully enabled the automatic updates in WordPress for the major releases.

Isn’t that Easy To Enable Automatic Updates In WordPress?

What do you think about automatic updates? Are you going to enable them?

Well, it’s the matter of personal choice because most of the people like to keep their website up to date and these automatic updates can help you.

To maintain the latest version even when you are not around, use the automatic updates.

by Ravi Chahar

A blogger, web developer, and designer who intends to guide his readers about WordPress, Blogging, Web Development, Web Design and more. I have expertise in WordPress theme development and customization. I can set up and redesign the Thesis themes. I have been working in this field for years now.

10 comments

  1. Hi Ravi,

    I came here from reading your great guest post over on Donna Merrill’s blog.

    This is a great little tutorial and something I’m going to try on one of my niche sites, as I rarely log into it, and when I do there’s always something to update with regards to the version of WordPress.

    Even though this is for core updates only, setting an automatic update sounds like to could save me some time for having to keep updating new releases of WordPress.

    Thanks again Ravi, and great to connect with you.

    Enjoy the rest of your week.
    – Fabrizio
    Fabrizio Van Marciano recently posted…How To Rock Your Personal Brand In 2017 (Plus My Top 6 Productivity Tools Vlog Episode #1)My Profile

    1. Hey Fabrizio,

      It would be a great idea to enable the automatic updates. This code only works for the big updates.
      As it’s always recommended to keep your plugins, themes and WordPress updated so that no one can find any back door.

      I am glad that we could meet at Donna’s place.
      Thanks for stopping by.
      ~Ravi

    1. Hey Riju,

      WordPress has many things which are yet to be known by many people. Enabling the automatic updates can help you when you aren’t able to check your website on the daily basis.
      Otherwise, you can update it manually.
      I am glad that at least I could bring you something new.
      ~Ravi

  2. Hi Ravi,

    Another hack that would certainly come in handy…I’m in love 🙂

    I’ve got a question though: any code that will automatically also update the plugins when there is a new update? Combining the two would really make a ton of sense and save one several precious hours 🙂

    Be sure to make the day great!

    Always,
    Akaahan Terungwa

    1. Hey Akaahan,

      There is an another code for enabling the automatic updates for the WordPress plugins. I will surely write a post about it.
      Thanks for stopping by.
      Enjoy your day.
      ~Ravi

  3. Hi Ravi! Happy Friday!

    This is a fabulous tutorial! Thankfully, my web host will auto update for me if I want. However, I’m not all about the “auto” updates. I like to make a backup prior to in the event something goes wrong. Eeek!

    But, this is great! You know I’ve already passed it along!

    Have a great weekend!

    B
    Bren Pace recently posted…3 Awesome Ways to Overcome an Unalluring BlogMy Profile

    1. Hey Bren,

      It’s good to have the web hosting like that you have. The manual updates are always good and having a backup is the best idea.
      Thanks for sharing your thoughts.
      Have a great week ahead.
      ~Ravi

Leave a Reply

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

CommentLuv badge