How do I have WordPress update plugins and themes automatically?

WordPress will automatically apply minor release updates to your site, so you can be sure you're always up to date and reduce the chance of vulnerabilities. By default, WordPress only applies minor releases. It can also be configured to apply major release updates as well.

But what if you want to update your themes and plugins, too? Fortunately, WordPress has made that just as easy.

All you need to do it edit your theme's functions.php file and add the following lines

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


The first line keeps plugins updated and the second works on your themes.
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How do I embed a Facebook status in a WordPress post?

Facebook now allows you to embed a status update anywhere you want online. One popular place to...

Recovering from the dreaded "eval(gzinflate(base64_decode" attack

So you're running a WordPress site and one day you realize that your search engine traffic is...

Displaying the most recent posts from a single category in WordPress

Have you ever seen a site that showed the most recent post or posts from a single category? If...

How do I get Google Maps into my WordPress site?

If you need to display address information anywhere on a WordPress site, like if you have a brick...