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



wp_pre_kses_less_than_callback › WordPress Function

Desde2.3.0
Obsoleton/a
wp_pre_kses_less_than_callback ( $matches )
Parâmetros:
  • (string[]) $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 ( ! str_contains( $matches[0], '>' ) ) {
		return esc_html( $matches[0] );
	}
	return $matches[0];
}