woocommerce_get_batch_processor

woocommerce_get_batch_processor

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_batch_processor') is found 1 times:

  • /src/Internal/BatchProcessing/BatchProcessingController.php line 337
    		 * @return BatchProcessorInterface|null The actual processor instance to use, or null if none could be retrieved.
    		 *
    		 * @since 6.8.0.
    		 */
    		$processor = apply_filters( 'woocommerce_get_batch_processor', $processor, $processor_class_name );
    		if ( ! isset( $processor ) && class_exists( $processor_class_name ) ) {
    			// This is a fallback for when the batch processor is not registered in the container.
    			$processor = new $processor_class_name();
    		}
    		if ( ! is_a( $processor, BatchProcessorInterface::class ) ) {
    			throw new \Exception( "Unable to initialize batch processor instance for $processor_class_name" );