Get updates from all Update Pilot Server supported plugins and themes.
Please note that on WordPress multisite the code using these hooks should be running on the main network site as the WordPress updates happen only there.
Filters:
-
update_pilot__plugin_update_key__${plugin_file}
returnsstring
product key to be used for HTTP Basic auth when checking updates for${plugin_file}
. -
update_pilot__current_user_can_manage_updates
returnsbool
if the current user can configure the update pilot settings and see any error notifications. -
update_pilot__is_update_pilot_url
returnsbool
if the secondstring
argument is a validUpdateURI
to be checked for updates. -
update_pilot__plugin_update_url
returnsstring
of theUpdateURI
endpoint.
-
Setup the Update Pilot Server on your server.
-
Add
Update URI
header to your pluginhttps://updates.example.com/wp-json/update-pilot/v1/plugins
or themehttps://updates.example.com/wp-json/update-pilot/v1/themes
. -
Optinally, include
update-pilot.php
in the root of your plugin or theme directory to customize any of the update functionality. This file will be included by the Update Pilot even if the rest of your plugin is disabled.