PHP Class WpGears\Cron\Client

Inheritance: extends WpGears\Client
Afficher le fichier Open project: 10up/wp-gears

Méthodes publiques

Méthode Description
add ( string $hook, array $args = [], string $priority = 'normal' ) : boolean Adds the job to the WP Cron queue. It will be executed on the next WordPress request.
register ( ) : boolean The Cron Client has no initialization, just returns true.

Method Details

add() public méthode

Adds the job to the WP Cron queue. It will be executed on the next WordPress request.
public add ( string $hook, array $args = [], string $priority = 'normal' ) : boolean
$hook string The action hook name for the job
$args array Optional arguments for the job
$priority string Ignored in WP-Cron
Résultat boolean Always true

register() public méthode

The Cron Client has no initialization, just returns true.
public register ( ) : boolean
Résultat boolean Always true