I am trying to use pre_set_site_transient_update_plugins to update my plugin from a GitHub repository.

For that I am using this example.
On my Dev-System (MAMP for Mac Version 2.2) everything is fine. It gets the latest Version and shows me the update notification.

When I publish it to my Live System wich is a hosted webspace package. I don’t get the Update Notification. Even after waiting 12 hours or using ?force-check=1

What I already did was to create a simple Plugin that logs a string to the wordpress log when pre_set_site_transient_update_plugins is called. Again on my Dev-system it works, but not Live. So I think it has something to do with the PHP configuration.

Does anyone has an idea which setting could prevent this filter from beeing executed?

2 Answers
2

Sorry for my late answer, but I found the solution for my problem.

My Code was fine, also my small Test-Plugin. The problem is with the caching of my hosting provider. They are caching the Database requests and it took some time for the updater to recognize that the plugin is updated.

Leave a Reply

Your email address will not be published. Required fields are marked *