wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_pre_kses_less_than_callback › WordPress Function

Da2.3.0
Deprecaton/a
wp_pre_kses_less_than_callback ( $matches )
Parametri:
  • (string[]) $matches Populated by matches to preg_replace.
    Richiesto:
Ritorna:
  • (string) The text returned after esc_html if needed.
Definito a:
Codex:

Callback function used by preg_replace.



Sorgenti

function wp_pre_kses_less_than_callback( $matches ) {
	if ( ! str_contains( $matches[0], '>' ) ) {
		return esc_html( $matches[0] );
	}
	return $matches[0];
}