PHP Класс TitanFrameworkOptionEddLicense

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

Открытые свойства

Свойство Тип Описание
$defaultSecondarySettings

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

Метод Описание
__construct ( array $settings, string $owner ) Constructor
activateLicense ( $option ) : void Activated the given EDD license.
check ( string $license = '', string $action = 'check_license' ) : string Check license status.
checkUpdates ( ) : boolean Check for plugin updates.
disable_wporg_request ( $r, $url ) Disable requests to wp.org repository for this theme.
display ( ) Display for options and meta
item_is ( string $file ) : string Check if $file is a theme or a plugin.
registerCustomizerControl ( $wp_customize, $section, $priority = 1 ) * Display for theme customizer

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

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

Constructor
С версии: 1.7.1
public __construct ( array $settings, string $owner )
$settings array Option settings
$owner string

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

Activated the given EDD license.
С версии: 1.7.1
public activateLicense ( $option ) : void
Результат void

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

The function makes an API call to the remote server and requests the license status. This function check (only) the license status or activate it depending on the $action parameter. The license status is then stored as a transient, and if an activation was made, an activation transient is also set in order to avoid activating when checking only is required.
public check ( string $license = '', string $action = 'check_license' ) : string
$license string License key
$action string Action to take (check_license or activate_license)
Результат string Current license status

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

This method is called throughout the entire WordPress admin and uses the EDD plugin updater class to check for new updates.
С версии: 1.7.2
public checkUpdates ( ) : boolean
Результат boolean True if an update check was done, false otherwise

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

Disable requests to wp.org repository for this theme.
С версии: 1.7.2
public disable_wporg_request ( $r, $url )

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

Display for options and meta
public display ( )

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

Check if $file is a theme or a plugin.
С версии: 1.7.2
public item_is ( string $file ) : string
$file string Path to the file to check
Результат string What type of file this is (parent theme, child theme or plugin)

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

* Display for theme customizer
public registerCustomizerControl ( $wp_customize, $section, $priority = 1 )

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

$defaultSecondarySettings публичное свойство

public $defaultSecondarySettings