QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads WordPress Enable Automatic Plugin Updates

WordPress Enable Automatic Plugin Updates

To enable automatic plugin updates you need to use this filter

add_filter( 'auto_update_plugin', '__return_true' );

Add this filter via a plugin.

The filter callback is passed with objects holding information about the plugin that will be auto updated. Therefore you can also enable or disable auto update for specific plugins. For example:

function auto_update_specific_plugins ( $update, $item ) {
    if ( $item->slug == 'akismet' ) ) {
        return true; // Always update "akismet" plugin
    } else {
        return $update; // Else, use the normal API response to decide whether to update or not
    }
}
add_filter( 'auto_update_plugin', 'auto_update_specific_plugins', 10, 2 );
Mar 19, 2015Narayan Prusty
WordPress Disable Automatic Update EmailsWordPress Enable Automatic Theme Updates
Comments: 1
  1. www.showmelocal.com
    7 years ago

    Enjoying the info on this site, you have done an incredible job on the
    blog articles.

    ReplyCancel

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

7 years ago 1 Comment WordPress
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • WordPress Enable Automatic Theme Updates
  • WordPress Enable or Disable Auto Update
  • WordPress Filter Final HTML Output
  • WordPress Disable Automatic Update Emails
  • Change WordPress Default Avatar
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license