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 enable automatic updating for major versions in WordPress?

WordPress has added in support for automated upgrading of minor releases. This means it will...

Use .htaccess to block WordPress brute force attacks

WordPress has been targeted recently for brute force attacks where hackers use automated scripts...

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...

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...