Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::is_scheduled │ public │ WC 1.0

Check if a batch processing action is already scheduled for a given processor. Pending and in-progress actions both count as scheduled.

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

Хуков нет.

Возвращает

bool. 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 11.3.0

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