PHP Class WP_AutoUpdate

Afficher le fichier Open project: folbert/fewbricks

Méthodes publiques

Méthode 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 méthode

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 méthode

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
Résultat boolean | object

check_update() public méthode

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

getRemote() public méthode

Return the remote version
public getRemote ( $action = '' ) : string
Résultat string $remote_version