Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::can_check_scheduled_actions │ private │ WC 1.0

Whether has_scheduled_action() can query Action Scheduler, rather than answering false because it is not loaded.

Method of the class: BatchProcessingController{}

No Hooks.

Returns

bool. True if at least one lookup function exists.

Usage

// private - for code of main (parent) class only
$result = $this->can_check_scheduled_actions(): bool;

BatchProcessingController::can_check_scheduled_actions() code WC 11.2.2

private function can_check_scheduled_actions(): bool {
	foreach ( $this->scheduled_action_lookups as $function ) {
		if ( function_exists( $function ) ) {
			return true;
		}
	}

	return false;
}