WP_Background_Process::__construct
Initiate new background process
Method of the class: WP_Background_Process{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Background_Process = new WP_Background_Process(); $WP_Background_Process->__construct();
WP_Background_Process::__construct() WP Background Process:: construct code WC 10.3.5
public function __construct() {
parent::__construct();
$this->cron_hook_identifier = $this->identifier . '_cron';
$this->cron_interval_identifier = $this->identifier . '_cron_interval';
add_action( $this->cron_hook_identifier, array( $this, 'handle_cron_healthcheck' ) );
add_filter( 'cron_schedules', array( $this, 'schedule_cron_healthcheck' ) );
}