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



wp_pre_kses_less_than_callback ›

Desde2.3.0
Obsoleton/a
wp_pre_kses_less_than_callback ( $matches )
Parâmetros:
  • (array) $matches Populated by matches to preg_replace.
    Required: Yes
Retorna:
  • (string) The text returned after esc_html if needed.
Definido em:
Codex:

Callback function used by preg_replace.



Fonte

function wp_pre_kses_less_than_callback( $matches ) {
	if ( false === strpos( $matches[0], '>' ) ) {
		return esc_html( $matches[0] );
	}
	return $matches[0];
}