PHP 클래스 TitanFrameworkOptionEddLicense

상속: extends TitanFrameworkOption
파일 보기 프로젝트 열기: gambitph/titan-framework

공개 프로퍼티들

프로퍼티 타입 설명
$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