WordPress at Your Fingertips
function is not described

WC_Background_Process::schedule_cron_healthcheck() public WC 1.0

Schedule cron healthcheck.

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

Hooks from the method
Return

Array.

Usage

$WC_Background_Process = new WC_Background_Process();
$WC_Background_Process->schedule_cron_healthcheck( $schedules );
$schedules(array) (required)
Schedules.

Code of WC_Background_Process::schedule_cron_healthcheck() WC 5.5.2

<?php
public function schedule_cron_healthcheck( $schedules ) {
	$interval = apply_filters( $this->identifier . '_cron_interval', 5 );

	if ( property_exists( $this, 'cron_interval' ) ) {
		$interval = apply_filters( $this->identifier . '_cron_interval', $this->cron_interval );
	}

	// Adds every 5 minutes to the existing schedules.
	$schedules[ $this->identifier . '_cron_interval' ] = array(
		'interval' => MINUTE_IN_SECONDS * $interval,
		/* translators: %d: interval */
		'display'  => sprintf( __( 'Every %d minutes', 'woocommerce' ), $interval ),
	);

	return $schedules;
}