woocommerce_get_batch_processor

FILTER woocommerce\src\Internal\BatchProcessing\BatchProcessingController.php (ligne 337) github
Filters the instance of a processor for a given class name.

Paramètres

Entrée :
$processor, $processor_class_name
Sortie :
@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 BatchProcessorInterface|null The actual processor instance to use, or null if none could be retrieved.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_get_batch_processor'
add_filter('woocommerce_get_batch_processor', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($processor) {
    // Modifier la valeur
    return $processor;
}

Actualités

Chargement des actualités...