Title: WP Plugin Auto-Updates Broken
Last modified: April 30, 2022

---

# WP Plugin Auto-Updates Broken

 *  [wrightmarty](https://wordpress.org/support/users/wrightmarty/)
 * (@wrightmarty)
 * [4 years ago](https://wordpress.org/support/topic/wp-plugin-auto-updates-broken/)
 * WordPress plugins with auto-update enabled never update due to a bug in LearnPress.
   The auto_update_plugin filter does not return the unfiltered value. LearnPress
   version 3.1.7.
 *     ```
       function learnpress_disable_auto_update( $update, $item ) {
               $plugins = array( // Plugins to  auto-update
                       'learnpress',
               );
               // Auto-update specified plugins
               if ( in_array( $item->slug, $plugins ) ) {
                       return false;
               }
               return $update; // <---- THIS LINE MISSING
       }
       add_filter( 'auto_update_plugin', 'learnpress_disable_auto_update', 10, 2 );
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [wrightmarty](https://wordpress.org/support/users/wrightmarty/)
 * (@wrightmarty)
 * [4 years ago](https://wordpress.org/support/topic/wp-plugin-auto-updates-broken/#post-15620346)
 * Correction. LearnPress version 4.1.6.3 (not 3.1.7).

Viewing 1 replies (of 1 total)

The topic ‘WP Plugin Auto-Updates Broken’ is closed to new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [wrightmarty](https://wordpress.org/support/users/wrightmarty/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/wp-plugin-auto-updates-broken/#post-15620346)
 * Status: not resolved