• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Startup Hero

The Official Blog Of Name Hero

Learn To Fly Above The Competition Get Started
  • HomeWelcome
  • CoursesVideo Training Center
  • About UsWhat is StartupHero?
  • BlogGet the latest
  • Start HereStartup 101
  • SpeakingPodcast & Media
  • ResourcesTools to help You
    • Reselling WordPress Hosting
    • Resell Hero
    • How To Start A Blog
  • NameHeroCloud Web Hosting

How To Automatically Update WordPress And Your Plugins/Themes

By Ryan Gray on February 7, 2018 3

How To Automatically Update WordPress And Your Plugins/Themes

99% of WordPress websites that have problems are because they’re not properly updated.

Just this week I had a customer get extremely angry because their site was infected with Malware and they couldn’t possibly understand why.

WordPress is free and open source software; therefore anyone in the world can download the full source code, meaning evildoers are constantly looking for ways to penetrate websites to carry out malicious activity (spam, phishing, etc.).

At Name Hero we automatically scan websites nightly for malware and remove it when found, it can sometimes break your website.  Therefore it’s always to prevent malware in the first place.

This is done by always running updated files.

Setup Auto Updates In Softaculous

If you initially installed WordPress using the Softaculous auto installer, the easiest way to automatically update WordPress, including your plugins/themes is inside of there.

If you didn’t select those options on install, you can set them by going to cPanel -> WordPress (under Softaculous Apps Installer)

From there, you want to click the pencil icon beside the website you’re wanting to auto-update:

You then want to make sure the following options are checked:

Once this is completed, Softaculous will automatically keep your WordPress website, plugins, and themes updated automatically.

Enable Auto Updates Manually

If you’ve migrated your WordPress over from another web host, it’s likely you don’t have this option in Softaculous.  Also, for those that have installed WordPress manually, you can edit some of your configuration files to get it to automatically update.

Enable WordPress Core File Updates

To enable the WordPress core files to update automatically, you need to add the following line of code to your wp-config.php file:

define( 'WP_AUTO_UPDATE_CORE', true );

You can easily access this file by going to cPanel -> File Manager  and then navigating to the location of your wp-config.php file.

Enable WordPress Plugins/Theme Updates

To enable your themes/plugins to automatically update you need to edit your functions.php file which is found in your active theme’s folder to include these two lines of code:

add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );

If the theme you’re using doesn’t already have a functions.php file you can simply create one.

There are also a lot more variables you can add to all of the above lines of code.  WordPress has a detailed article inside their Codex that explains these in great detail. If you’re going to go this route, I highly suggest giving that a read.

Enable Auto Update Plugins With A Plugin

While I’m personally not a fan of using a lot of “plugins” (for performance and security concerns) there is a plugin you can use to update your plugins automatically.

Simply install (wait for it) the Automatic Plugin Updates plugin 🙂

The main attraction to using this is you can select plugins to “ignore” if you don’t want them to auto-update.  This is beneficial when using plugins you’ve heavily customized for your WordPress website.

Rollback WordPress Plugin Updates

One issue I’ve personally ran into (with the NameHero blog) is an updated plugin causing the whole website to crash.

This happens when the plugin update isn’t compatible with your core WordPress files or specific PHP settings.

Thankfully there is a good plugin that will allow you to automatically “rollback” to the pervious version you were using.

This is called WP Rollback and can be downloaded/installed for free.

If using this, I do recommend reaching out to the plugin developer to explain to them your setup, so they can release a fix as you don’t want to leave a plugin on an older version for an extended period of time.

How To Automatically Update WordPress Tutorial

I’ve filmed a video tutorial where I walk through all of these options and explain them step-by-step:

Should You Automatically Update WordPress?

If you’re like me and login to your WordPress website at least five times a week, you’re probably fine to manually update everything.

I’m real anal about doing this and have never ran into a case of malware on my websites.

However, if you only plan on logging in a few times a year, especially those of you with “brick and mortar” businesses, I HIGHLY recommend automatically updating.

As NameHero CEO it’s a bit frustrating seeing customers get angry at us when the problem was caused due to lack of updates.  Our malware scanner can help you AFTER the site has been injected, but the best route is to prevent it all together.

If you have any questions about how to enable auto updates in WordPress, feel free to ask below!

  • Browse Our High-Speed Cloud WordPress Hosting

Ryan Gray

Ryan Gray is the founder and CEO of NameHero, one of the fastest growing independent web hosts in the United States. Ryan has been working online since 1998 and has over two-decades experience in Internet Entrepreneurship.

Reader Interactions

Trackbacks

  1. How To Manually Add Your WordPress Website To Softaculous (For Auto Updates + One Click Cloning) says:
    March 12, 2018 at 9:56 pm

    […] month I published a guide on How To Automatically Update WordPress And Your Plugins/Themes and How To Clone Your WordPress Website With 1 […]

    Reply
  2. How WP Rollback Saved The NameHero Blog says:
    May 24, 2018 at 5:09 pm

    […] That’s when I remembered blogging about WP Rollback earlier this year. […]

    Reply
  3. The Ultimate List of WordPress Security Resources and Blogs - PassionWP says:
    August 22, 2019 at 12:59 pm

    […] That's why you should explore the options mentioned by Ryan Gray, the founder of NameHero, to enable auto updates for plugins either by using a code snippet or through a […]

    Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Connect With Us!

Superhero Resources

Fix Common Issues

  • How To Setup Free And Automatic SSL Certificates
  • How To Setup Cloudflare With Railgun
  • How To Fix Memory Exhausted Errors In WordPress
  • How To Edit PHP Version/Upload Limit/Add Extensions
  • How To Move/Migrate Your Business To Name Hero

Free Guides

  • How To Setup NameHero Hosting
  • How To Create A Web Hosting Business With WordPress
  • How To Start A WordPress Blog
  • How To Migrate WordPress To A VPS
  • How To Speed Test And Optimize Your WordPress Website
  • Magento 2.X Installation Guide
  • How To Clean Up A WordPress Hack

Training

Recent Posts

  • What Can You Do To Improve Mobile Load Times?
  • The Challenges Of Rate Limiting For Websites
  • When Hosting Location Doesn’t Matter (And When it Does)
  • Why There’s No Free Domain With All NameHero Plans
  • How To Block wp-login.php With Cloudflare
  • What NameHero’s “Unlimited” Storage Means
Subscribe in a reader
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • VPS Hosting
  • Twitter
  • Facebook
  • LinkedIn
  • YouTube
  • FTC Disclosure
  • Earnings Disclosure
  • Privacy Policy

Copyright © 2021 · Smart Passive Income Pro on Genesis Framework · WordPress · Log in