woocommerce_logger_add_message

woocommerce_logger_add_message

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_logger_add_message') is found 2 times:

  • /includes/class-wc-logger.php line 137
    	 * @param string $level Logging level.
    	 * @return bool
    	 */
    	public function add( $handle, $message, $level = WC_Log_Levels::NOTICE ) {
    		$message = apply_filters( 'woocommerce_logger_add_message', $message, $handle );
    		$this->log(
    			$level,
    			$message,
    			array(
    				'source'  => $handle,
    				'_legacy' => true,
    
  • /includes/log-handlers/class-wc-log-handler-file.php line 123
    				$handle = $context['source'];
    			} else {
    				$handle = 'log';
    			}
    			$message = apply_filters( 'woocommerce_logger_add_message', $message, $handle );
    			$time    = date_i18n( 'm-d-Y @ H:i:s' );
    			$entry   = "{$time} - {$message}";
    		} else {
    			$entry = parent::format_entry( $timestamp, $level, $message, $context );
    		}