WordPress at a glance
filter is not described

esc_xml filter-hook . WP 5.5.0

Filters a string cleaned and escaped for output in XML.

Text passed to esc_xml() is stripped of invalid or special characters before output. HTML named character references are converted to their equivalent code points.

Usage

add_filter( 'esc_xml', 'filter_function_name_2218', 10, 2 );
function filter_function_name_2218( $safe_text, $text ){
	// filter...

	return $safe_text;
}
$safe_text(string)
The text after it has been escaped.
$text(string)
The text prior to being escaped.

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

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

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

esc_xml()
esc_xml
wp-includes/formatting.php 4587
return apply_filters( 'esc_xml', $safe_text, $text );

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

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