wc_batch_processing_log_message

FILTER woocommerce\src\Internal\BatchProcessing\BatchProcessingController.php (ligne 474) github
Filters the error message for a batch processing.

Paramètres

Entrée :
$error_message, $error, $batch_processor, $batch, $error_context
Sortie :
@param string $error_message The error message that will be logged.
@param \Exception $error The exception that was thrown by the processor.
@param BatchProcessorInterface $batch_processor The processor that threw the exception.
@param array $batch The batch that was being processed.
@param array $error_context Context to be passed to the logging function.
@return string The actual error message that will be logged.

Utilisation

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

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

Actualités

Chargement des actualités...