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 6.9.4

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