Property | Type | Description | |
---|---|---|---|
$upgrader_skin | Holds REST Upgrader Skin. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
get_messages ( ) | Get messages during update. | |
is_error ( ) | Is there an error? | |
process_request ( ) | Process request. | |
show_updates ( $response ) : mixed | Return listing of available updates. | |
update_plugin ( string $plugin_slug, string $tag = 'master' ) | Update plugin. | |
update_theme ( string $theme_slug, string $tag = 'master' ) | Update a single theme. |
Method | Description | |
---|---|---|
get_webhook_data ( ) : boolean | array | Checks the headers of the request and sends webhook data to be parsed. | |
parse_bitbucket_webhook ( array $request_data ) : boolean | array | Parses Bitbucket webhook data. | |
parse_github_webhook ( array $request_data ) : array | Parses GitHub webhook data. | |
parse_gitlab_webhook ( array $request_data ) : array | Parses GitLab webhook data. |
public process_request ( ) |
public show_updates ( $response ) : mixed | ||
$response | ||
return | mixed |
public update_plugin ( string $plugin_slug, string $tag = 'master' ) | ||
$plugin_slug | string | |
$tag | string |
public update_theme ( string $theme_slug, string $tag = 'master' ) | ||
$theme_slug | string | |
$tag | string |