plugin-update-checker
plugin-update-checker copied to clipboard
JSON API Format
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.
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.