woocommerce_remote_logger_sanitized_content хук-фильтрWC 9.5.0

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

Использование

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(строка)
The sanitized content.
$content(строка)
The original content.

Список изменений

С версии 9.5.0 Введена.

Где вызывается хук

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

Где используется хук в WooCommerce

Использование не найдено.