PHP Class WP_AutoUpdate

Mostrar archivo Open project: folbert/fewbricks

Public Methods

Method Description
__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

Method Details

__construct() public method

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() public method

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
return boolean | object

check_update() public method

Add our self-hosted autoupdate plugin to the filter transient
public check_update ( $transient ) : object
$transient
return object $ transient

getRemote() public method

Return the remote version
public getRemote ( $action = '' ) : string
return string $remote_version