Filters the error message for a batch processing.
$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.
// 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;
}
Chargement des actualités...