woocommerce_get_batch_processor хук-фильтрWC 6.8.0.

Filters the instance of a processor for a given class name.

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

add_filter( 'woocommerce_get_batch_processor', 'wp_kama_woocommerce_get_batch_processor_filter', 10, 2 );

/**
 * Function for `woocommerce_get_batch_processor` filter-hook.
 * 
 * @param object|null $processor            The processor instance given by the dependency injection container, or null if none was obtained.
 * @param string      $processor_class_name The full class name of the processor.
 *
 * @return object|null
 */
function wp_kama_woocommerce_get_batch_processor_filter( $processor, $processor_class_name ){

	// filter...
	return $processor;
}
$processor(объект|null)
The processor instance given by the dependency injection container, or null if none was obtained.
$processor_class_name(строка)
The full class name of the processor.

Список изменений

С версии 6.8.0. Введена.

Где вызывается хук

BatchProcessingController::get_processor_instance()
woocommerce_get_batch_processor
woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php 276
$processor = apply_filters( 'woocommerce_get_batch_processor', $processor, $processor_class_name );

Где используется хук в WooCommerce

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