WordPress at Your Fingertips
function is not described

WP_Background_Process::__construct() public WC 1.0

Initiate new background process

{} It's a method of the class: WP_Background_Process{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Background_Process = new WP_Background_Process();
$WP_Background_Process->__construct();

Code of WP_Background_Process::__construct() WC 5.8.0

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' ) );
}