rudrastyh / misha-update-checker

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

Update only visible when plugin has been activated #6

Open stgoos opened 2 years ago

stgoos commented 2 years ago

Hi Misha, first of all BIG thanks for sharing the code and the awesome clear tutorial!

I've got a question.

When the plugin has NOT been activated it will not check for available updates, right? Is that by design in your code? Or does the WordPress update mechanism only check those with a lower interval (and am I thus too impatient, since I started today with your code)?

Steven

aminshoukat commented 2 years ago

I have the same question. Wordpress shows updates of plugins too that are not enable but in our case it only show update is available when plugin gets activate. Please let us know how to show updates available when plugin is not active. Thanks

rudrastyh commented 2 years ago

Hi Guys,

WordPress does some update checks for plugins in its own repository. What we do is to actually hook that for our custom plugin. But our hooks aren't active unless the plugin is active? :) so, that's a cycle

Maybe there is a solution, but I don't know it at this moment

stgoos commented 2 years ago

I dug a bit further into the matter and figured that out as well and so far I've not yet found a way around it.

The coming weeks I won't have that much spare time unfortunately but I'll try to do some more research when I can to see if there is a bypass possible.