Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Updates not working with Misha? #18

Open
Kulimeya opened this issue Aug 5, 2024 · 0 comments
Open

Auto Updates not working with Misha? #18

Kulimeya opened this issue Aug 5, 2024 · 0 comments

Comments

@Kulimeya
Copy link

Kulimeya commented Aug 5, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant