ActionScheduler_QueueRunner::add_wp_cron_schedule()publicWC 1.0

Method of the class: ActionScheduler_QueueRunner{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_QueueRunner = new ActionScheduler_QueueRunner();
$ActionScheduler_QueueRunner->add_wp_cron_schedule( $schedules );
$schedules (required)
-

ActionScheduler_QueueRunner::add_wp_cron_schedule() code WC 9.3.3

public function add_wp_cron_schedule( $schedules ) {
	$schedules['every_minute'] = array(
		'interval' => 60, // in seconds
		'display'  => __( 'Every minute', 'woocommerce' ),
	);

	return $schedules;
}