PHP Class WpGears\Cron\Client

Inheritance: extends WpGears\Client
Exibir arquivo Open project: 10up/wp-gears

Public Methods

Method 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 method

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
return boolean Always true

register() public method

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