PHP 클래스 Fragen\GitHub_Updater\Plugin

Update a WordPress plugin from a GitHub repo.
저자: Andy Fragen
저자: Codepress
상속: extends Base
파일 보기 프로젝트 열기: afragen/github-updater

보호된 프로퍼티들

프로퍼티 타입 설명
$tag Rollback variable

공개 메소드들

메소드 설명
__construct ( ) Constructor.
get_plugin_configs ( ) : array Returns an array of configurations for the known plugins.
get_remote_plugin_meta ( ) Get remote plugin meta to populate $config plugin objects.
instance ( ) : object The Plugin object can be created/obtained via this method - this prevents unnecessary work in rebuilding the object and querying to construct a list of categories, etc.
load_pre_filters ( ) Load pre-update filters.
plugin_branch_switcher ( $plugin_file, $plugin_data ) : boolean Add branch switch row to plugins page.
plugin_row_meta ( $links, $file ) : array Add 'View details' link to plugins page.
plugins_api ( $false, $action, $response ) : mixed Put changelog in plugins_api, return WP.org data as appropriate
pre_set_site_transient_update_plugins ( $transient ) : mixed Hook into pre_set_site_transient_update_plugins to update from GitHub.

보호된 메소드들

메소드 설명
get_plugin_meta ( ) : array Get details of Git-sourced plugins from those that are installed.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

get_plugin_configs() 공개 메소드

Returns an array of configurations for the known plugins.
public get_plugin_configs ( ) : array
리턴 array

get_plugin_meta() 보호된 메소드

Get details of Git-sourced plugins from those that are installed.
protected get_plugin_meta ( ) : array
리턴 array Indexed array of associative arrays of plugin details.

get_remote_plugin_meta() 공개 메소드

Calls to remote APIs to get data.

instance() 공개 정적인 메소드

The Plugin object can be created/obtained via this method - this prevents unnecessary work in rebuilding the object and querying to construct a list of categories, etc.
public static instance ( ) : object
리턴 object $instance Plugin

load_pre_filters() 공개 메소드

Load pre-update filters.
public load_pre_filters ( )

plugin_branch_switcher() 공개 메소드

Add branch switch row to plugins page.
public plugin_branch_switcher ( $plugin_file, $plugin_data ) : boolean
$plugin_file
$plugin_data
리턴 boolean

plugin_row_meta() 공개 메소드

Add 'View details' link to plugins page.
public plugin_row_meta ( $links, $file ) : array
$links
$file
리턴 array $links

plugins_api() 공개 메소드

Put changelog in plugins_api, return WP.org data as appropriate
public plugins_api ( $false, $action, $response ) : mixed
$false
$action
$response
리턴 mixed

pre_set_site_transient_update_plugins() 공개 메소드

Hook into pre_set_site_transient_update_plugins to update from GitHub.
public pre_set_site_transient_update_plugins ( $transient ) : mixed
$transient
리턴 mixed

프로퍼티 상세

$tag 보호되어 있는 프로퍼티

Rollback variable
protected $tag