tag_escape filter-hookWP 2.8.0

Filters a string cleaned and escaped for output as an HTML tag.

Usage

add_filter( 'tag_escape', 'wp_kama_tag_escape_filter', 10, 2 );

/**
 * Function for `tag_escape` filter-hook.
 * 
 * @param string $safe_tag The tag name after it has been escaped.
 * @param string $tag_name The text before it was escaped.
 *
 * @return string
 */
function wp_kama_tag_escape_filter( $safe_tag, $tag_name ){

	// filter...
	return $safe_tag;
}
$safe_tag(string)
The tag name after it has been escaped.
$tag_name(string)
The text before it was escaped.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

tag_escape()
tag_escape
wp-includes/formatting.php 4690
return apply_filters( 'tag_escape', $safe_tag, $tag_name );

Where the hook is used in WordPress

Usage not found.