프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$response | array | Variable to hold all repository remote info. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
get_api_url ( string $endpoint ) : string | Return API url. |
abstract public get_remote_info ( $file ) |
protected get_transient ( ) : array | boolean | ||
리턴 | array | boolean |
protected make_release_asset_download_link ( ) : string | ||
리턴 | string | $download_link |
protected return_repo_type ( ) : array | ||
리턴 | array |
protected validate_response ( $response ) : boolean | ||
$response | ||
리턴 | boolean | true if invalid |
protected array $response | ||
리턴 | array |