From f421939a3efe3062db3e5f31d1cf7f881e88c7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mar=C3=ADn?= Date: Tue, 30 May 2017 09:55:10 +0200 Subject: [PATCH] Add new filter woocommerce_logger_log_message It replicates the filter for the deprecated add logger function in the equivalent log function. --- includes/class-wc-logger.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-wc-logger.php b/includes/class-wc-logger.php index e1f159cd2e3..f93bacafb6f 100644 --- a/includes/class-wc-logger.php +++ b/includes/class-wc-logger.php @@ -129,6 +129,7 @@ class WC_Logger implements WC_Logger_Interface { if ( $this->should_handle( $level ) ) { $timestamp = current_time( 'timestamp' ); + $message = apply_filters( 'woocommerce_logger_log_message', $message, $level, $context ); foreach ( $this->handlers as $handler ) { $handler->handle( $timestamp, $level, $message, $context );