PHP Класс WP_AutoUpdate

Показать файл Открыть проект

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

Метод Описание
__construct ( string $current_version, string $update_path, string $plugin_slug, $license_user = '', $license_key = '' ) Initialize a new instance of the WordPress Auto-Update class
check_info ( boolean $false, array $action, object $arg ) : boolean | object Add our self-hosted description to the filter
check_update ( $transient ) : object Add our self-hosted autoupdate plugin to the filter transient
getRemote ( $action = '' ) : string Return the remote version

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

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

Initialize a new instance of the WordPress Auto-Update class
public __construct ( string $current_version, string $update_path, string $plugin_slug, $license_user = '', $license_key = '' )
$current_version string
$update_path string
$plugin_slug string

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

Add our self-hosted description to the filter
public check_info ( boolean $false, array $action, object $arg ) : boolean | object
$false boolean
$action array
$arg object
Результат boolean | object

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

Add our self-hosted autoupdate plugin to the filter transient
public check_update ( $transient ) : object
$transient
Результат object $ transient

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

Return the remote version
public getRemote ( $action = '' ) : string
Результат string $remote_version