Property | Type | Description | |
---|---|---|---|
$response | array | Variable to hold all repository remote info. |
Method | Description | |
---|---|---|
construct_download_link ( ) | ||
get_language_pack ( $headers ) | ||
get_remote_branches ( ) | ||
get_remote_changes ( $changes ) | ||
get_remote_info ( $file ) | * The following functions must be in any repository API. | |
get_remote_readme ( ) | ||
get_remote_tag ( ) | ||
get_repo_meta ( ) | ||
http_request_args ( array $args, string $url ) : array | Adds custom user agent for GitHub Updater. | |
wp_update_response ( mixed $response, array $args, string $url ) : mixed | Shiny updates results in the update transient being reset with only the wp.org data. |
Method | Description | |
---|---|---|
add_endpoints ( $git, $endpoint ) | ||
api ( string $url ) : boolean | object | Call the API and return a json decoded body. | |
get_dot_org_data ( ) : array | boolean | mixed | string | WP_Error | Query wp.org for plugin information. | |
get_transient ( ) : array | boolean | Returns site_transient and checks/stores transient id in array. | |
make_release_asset_download_link ( ) : string | Create release asset download link. | |
parse_changelog_response ( $response ) | ||
parse_meta_response ( $response ) | ||
parse_tag_response ( $response ) | ||
return_repo_type ( ) : array | Return repo data for API calls. | |
set_transient ( string $id, mixed $response ) : boolean | Used to set_site_transient and checks/stores transient id in array. | |
validate_response ( $response ) : boolean | Validate wp_remote_get response. |
Method | Description | |
---|---|---|
get_api_url ( string $endpoint ) : string | Return API url. |
abstract public get_remote_info ( $file ) |
protected get_transient ( ) : array | boolean | ||
return | array | boolean |
protected make_release_asset_download_link ( ) : string | ||
return | string | $download_link |
abstract protected parse_changelog_response ( $response ) |
abstract protected parse_meta_response ( $response ) |
protected return_repo_type ( ) : array | ||
return | array |
protected validate_response ( $response ) : boolean | ||
$response | ||
return | boolean | true if invalid |
protected array $response | ||
return | array |