_wp_kses_decode_entities_chr_hexdec()WP 2.9.0

Regex callback for wp_kses_decode_entities().

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Returns

String.

Usage

_wp_kses_decode_entities_chr_hexdec( $matches );
$matches(array) (required)
preg match.

Changelog

Since 2.9.0 Introduced.

_wp_kses_decode_entities_chr_hexdec() code WP 7.0

function _wp_kses_decode_entities_chr_hexdec( $matches ) {
	return chr( hexdec( $matches[1] ) );
}