Automattic\WooCommerce\Internal\BatchProcessing
BatchProcessingController::is_scheduled
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.
Method of the class: BatchProcessingController{}
No Hooks.
Returns
true|false. True if a batch processing action is already scheduled for the processor.
Usage
$BatchProcessingController = new BatchProcessingController(); $BatchProcessingController->is_scheduled( $processor_class_name ): bool;
- $processor_class_name(string) (required)
- Fully qualified class name of the batch processor.
BatchProcessingController::is_scheduled() BatchProcessingController::is scheduled code WC 10.4.3
public function is_scheduled( string $processor_class_name ): bool {
return as_has_scheduled_action( self::PROCESS_SINGLE_BATCH_ACTION_NAME, array( $processor_class_name ) );
}