PHP Класс Yoast_Theme_Update_Manager

Наследование: extends Yoast_Update_Manager
Показать файл Открыть проект

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

Метод Описание
__construct ( Yoast_Product $product, string $license_key ) Constructor
get_update_data ( ) : object Get update data
load_themes_screen ( ) Add hooks and scripts to the Appearance > Themes screen
set_theme_update_transient ( $value ) Set "updates available" transient
show_update_details ( ) Show update link.

Приватные методы

Метод Описание
get_theme_version ( ) : string Get the current theme version
setup_hooks ( ) Setup hooks

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

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

Constructor
public __construct ( Yoast_Product $product, string $license_key )
$product Yoast_Product The Product.
$license_key string The License key.

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

This gets the update data from a transient (12 hours), if set. If not, it will make a remote request and get the update data.
public get_update_data ( ) : object
Результат object $update_data Object containing the update data

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

Add hooks and scripts to the Appearance > Themes screen
public load_themes_screen ( )

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

Set "updates available" transient
public set_theme_update_transient ( $value )

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

Opens Thickbox with Changelog.
public show_update_details ( )