PHP Класс Fragen\GitHub_Updater\Theme

Class Theme
Автор: Andy Fragen
Автор: Seth Carstens
Автор: UCF Web Communications
Наследование: extends Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$tag number Rollback variable.

Открытые методы

Метод Описание
__construct ( ) Constructor.
customize_theme_update_html ( $prepared_themes ) : mixed Call theme messaging for single site installation.
get_remote_theme_meta ( ) Get remote theme meta to populate $config theme objects.
get_theme_configs ( ) : array Returns an array of configurations for the known themes.
instance ( ) : object The Theme 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.
multisite_branch_switcher ( $theme_key, $theme ) : boolean | void Create branch switcher row for multisite installation.
pre_set_site_transient_update_themes ( array $transient ) : array | object Hook into pre_set_site_transient_update_themes to update.
remove_after_theme_row ( $theme_key, $theme ) Remove default after_theme_row_$stylesheet.
themes_api ( $false, $action, $response ) : mixed Put changelog in themes_api, return WP.org data as appropriate.
wp_theme_update_row ( $theme_key, $theme ) Add custom theme update row, from /wp-admin/includes/update.php Display update details or rollback links for multisite installation.

Защищенные методы

Метод Описание
append_theme_actions_content ( object $theme ) : string Create theme update messaging for single site installation.
get_theme_meta ( ) : array Reads in WP_Theme class of each theme.
single_install_switcher ( object $theme ) : string Display rollback/branch switcher for single site installation.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

append_theme_actions_content() защищенный Метод

Create theme update messaging for single site installation.
Автор: Seth Carstens
protected append_theme_actions_content ( object $theme ) : string
$theme object
Результат string (content buffer)

customize_theme_update_html() публичный Метод

Call theme messaging for single site installation.
Автор: Seth Carstens
public customize_theme_update_html ( $prepared_themes ) : mixed
$prepared_themes
Результат mixed

get_remote_theme_meta() публичный Метод

Calls to remote APIs to get data.

get_theme_configs() публичный Метод

Returns an array of configurations for the known themes.
public get_theme_configs ( ) : array
Результат array

get_theme_meta() защищенный Метод

Populates variable array.
protected get_theme_meta ( ) : array
Результат array Indexed array of associative arrays of theme details.

instance() публичный статический Метод

The Theme 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 Theme

load_pre_filters() публичный Метод

Load pre-update filters.
public load_pre_filters ( )

multisite_branch_switcher() публичный Метод

Create branch switcher row for multisite installation.
public multisite_branch_switcher ( $theme_key, $theme ) : boolean | void
$theme_key
$theme
Результат boolean | void

pre_set_site_transient_update_themes() публичный Метод

Finds newest tag and compares to current tag.
public pre_set_site_transient_update_themes ( array $transient ) : array | object
$transient array
Результат array | object

remove_after_theme_row() публичный Метод

Remove default after_theme_row_$stylesheet.
Автор: @grappler
public remove_after_theme_row ( $theme_key, $theme )
$theme_key
$theme

single_install_switcher() защищенный Метод

Display rollback/branch switcher for single site installation.
protected single_install_switcher ( object $theme ) : string
$theme object
Результат string

themes_api() публичный Метод

Put changelog in themes_api, return WP.org data as appropriate.
public themes_api ( $false, $action, $response ) : mixed
$false
$action
$response
Результат mixed

wp_theme_update_row() публичный Метод

Add custom theme update row, from /wp-admin/includes/update.php Display update details or rollback links for multisite installation.
Автор: Seth Carstens
public wp_theme_update_row ( $theme_key, $theme )
$theme_key
$theme

Описание свойств

$tag защищенное свойство

Rollback variable.
protected number $tag
Результат number