Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::is_scheduled()publicWC 1.0

Check if a batch processing action is already scheduled for a given processor. Differs from as_has_scheduled_action in that this excludes actions in progress.

Метод класса: BatchProcessingController{}

Хуков нет.

Возвращает

true|false. True if a batch processing action is already scheduled for the processor.

Использование

$BatchProcessingController = new BatchProcessingController();
$BatchProcessingController->is_scheduled( $processor_class_name ): bool;
$processor_class_name(строка) (обязательный)
Fully qualified class name of the batch processor.

Код BatchProcessingController::is_scheduled() WC 8.7.0

public function is_scheduled( string $processor_class_name ): bool {
	return as_has_scheduled_action( self::PROCESS_SINGLE_BATCH_ACTION_NAME, array( $processor_class_name ) );
}