QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Bitcoin BankingBuy, Sell, Store and Earn Interest
  • 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
    5 years ago

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

    ReplyCancel

Leave a Reply to www.showmelocal.com 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`.

Narayan Prusty

I am a full-stack web developer. I specialize in Blockchain and JavaScript. This is my personal blog where I write about programming and technologies that I learn and feel interesting to share.

6 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
Freelance: I am available
@narayanprusty
Hi, I am a full-stack developer - focusing on JavaScript, WordPress, Blockchain, DevOps, Serverless and Cordova. You can outsource your app development to me.





Will get back to you soon!!!
WordPress
ReactJS
Meteor
Blockchain
Serverless
Kubernetes
DevOps
DB & Storage
Ejabberd
Let's get started
My Books

2014 - 2015 © QNimate
All tutorials MIT license