WordPress at Your Fingertips
filter is not described

attribute_escape filter-hook . WP 2.0.6

Filters a string cleaned and escaped for output in an HTML attribute.

Text passed to esc_attr() is stripped of invalid or special characters before output.


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

	return $safe_text;
The text after it has been escaped.
The text prior to being escaped.

Where the hook is called

In file: /wp-includes/formatting.php
wp-includes/formatting.php 4522
return apply_filters( 'attribute_escape', $safe_text, $text );

Where in WP core the hook is used WordPress

Usage not found.