PHP 클래스 Yoast_Theme_Update_Manager

상속: extends Yoast_Update_Manager
파일 보기 프로젝트 열기: yoast/license-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 ( )