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.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Prevent unauthorized WordPress wp-admin and wp-login.php attempts

 01.  Login in to cPanel  02. Click Directory Privacy  03. Click the folder icon next to...

How do I disable automatic updating in WordPress?

One of the many features added to WordPress in 3.7 was automatically updating for minor releases....

Deleting post revisions from the WordPress database

One of the great features the WordPress added in was post revisions. Any changes made to posts...

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