plugin-update-checker icon indicating copy to clipboard operation
plugin-update-checker copied to clipboard

JSON API Format

Open SirLouen opened this issue 4 years ago • 1 comments

I've been creating a JSON with a custom WP Rest API endpoint.

But plugin update checker doesn't recognize it by default

Nevertheless, I added the same JSON parameters in the same order as in other plugins I already have with the wp-update-server

Not sure if this plugin-update-checker considers other elements I'm not considering in my WP endpoint.

SirLouen avatar Jan 27 '21 11:01 SirLouen

Could you post an example API response here? Feel free to edit sensitive details like the download URL or plugin name; I just want to see the overall structure to make sure that all of the necessary parameters are present and formatted correctly.

Also, I would recommend installing the Debug Bar plugin. It can be useful for debugging issues with PUC updates. If you go to the "PUC (your-slug)" panel in the Debug Bar and click the "Request Info" button, that should show you if the update checker is able to reach your endpoint and get the plugin metadata. The "Check Now" button will show the update data.

YahnisElsts avatar Jan 27 '21 12:01 YahnisElsts