rudrastyh / misha-update-checker

This simple plugin does nothing, only gets updates from a custom server
120 stars 44 forks source link

Auto Updates not working with Misha? #18

Open Kulimeya opened 1 month ago

Kulimeya commented 1 month ago

I'm trying to use the Misha Update Checker with Auto Updates, because I'm managing a lot of WPs.

I used this snippet to active auto updates for my plugin:

add_filter("auto_update_plugin", "enable_auto_update_for_specific_plugins", 10, 2);

function enable_auto_update_for_specific_plugins($update, $item)
{
    $plugins_to_update = ["my-plugin/my-plugin.php"];
    if (in_array($item->plugin, $plugins_to_update)) {
        return true;
    }
    return $update;
}

The WP Plugins list shows that an update is available and also that auto updates are activated for my plugin, but the wp-cron doesn't install it. I even triggered the wp_update_plugins action manually with WP Crontrol, but it does nothing and also doesn't log any errors. Do you have any ideas what could be the problem?