Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_pre_kses_less_than ›

Desde2.3.0
Obsoleton/a
wp_pre_kses_less_than ( $text )
Parâmetros:
  • (string) $text Text to be converted.
    Required: Yes
Retorna:
  • (string) Converted text.
Definido em:
Codex:

Convert lone less than signs.

KSES already converts lone greater than signs.



Fonte

function wp_pre_kses_less_than( $text ) {
	return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text );
}