woocommerce_remote_logger_sanitized_content filter-hookWC 9.5.0

Filter the sanitized log content before it's sent to the remote logging service.

Usage

add_filter( 'woocommerce_remote_logger_sanitized_content', 'wp_kama_woocommerce_remote_logger_sanitized_content_filter', 10, 2 );

/**
 * Function for `woocommerce_remote_logger_sanitized_content` filter-hook.
 * 
 * @param string $sanitized The sanitized content.
 * @param string $content   The original content.
 *
 * @return string
 */
function wp_kama_woocommerce_remote_logger_sanitized_content_filter( $sanitized, $content ){

	// filter...
	return $sanitized;
}
$sanitized(string)
The sanitized content.
$content(string)
The original content.

Changelog

Since 9.5.0 Introduced.

Where the hook is called

RemoteLogger::sanitize()
woocommerce_remote_logger_sanitized_content
woocommerce/src/Internal/Logging/RemoteLogger.php 439
return apply_filters( 'woocommerce_remote_logger_sanitized_content', $sanitized, $content );

Where the hook is used in WooCommerce

Usage not found.