• wrightmarty

    (@wrightmarty)


    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)
Viewing 1 replies (of 1 total)

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