Update Pilot Server provides an API endpoint for WordPress plugin and theme updates through native REST API.
Package Origins
GitHub Repository
This feature is currently in development. Please contact us to learn more about the current status.
Composer Repository
Add any Composer repository as an origin for your plugins and themes:
<?php
use WPElevator\Update_Pilot_Server\Composer_Repository;
add_filter(
'update_server__repositories',
function ( $repositories ) {
$composer = new Composer_Repository( 'https://satis.example.com' );
$composer->set_http_credentials( 'username', 'password' ); // Optional.
$repositories[] = $composer;
return $repositories;
}
);
Only the packages that have the type
set to either wordpress-plugin
or wordpress-theme
are made available.