• Resolved Sajid Hussain

    (@learn-wp)


    I an currently developing a plugin. for those plugin which are hosted on wordpress upgrades notification are managed by wordpress. I am looking to manage same notification system for my pro plugin which will not be hosted on the wordpress

    thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • AFAIK the filters you need to check for an update are:

    pre_set_site_transient_update_plugins
    pre_set_transient_update_plugins

    and the attached function would probably use wp_remote_post to interrogate your repository server and return if the plugin needs updating.

    The other filter is:

    plugins_api

    which again could use wp_remote_post to get the new ZIP file.

    That should get you started whilst you are looking at the core code.

    Ian.

    Thread Starter Sajid Hussain

    (@learn-wp)

    Thanks for you help,

    it really did worked for me but when I click on update now this error appears

    The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

    I’m guessing but sounds like the ZIP file is malformed.

    I forgot to suggest before, but Googling pre_set_site_transient_update_plugins gives a couple of working examples as the first few results.

    Thread Starter Sajid Hussain

    (@learn-wp)

    I have solved the package issue but after that

    Downloading update from https://localhost/playernew/player_updates/update.php…

    Unpacking the update…

    Installing the latest version…

    Removing the old version of the plugin…

    Could not remove the old plugin.

    Plugin update failed.

    but when i go to plugins page my plugin is removed but new version not installed

    Thread Starter Sajid Hussain

    (@learn-wp)

    Thanks for your help I got it working its done perfectly.

    @learn-wp,
    I’d be grateful if you could please post the code to pastebin, and put the URL here….
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to handle wordpress independent plugin upgrades notification system’ is closed to new replies.