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



wp_filter_kses ›

Desde1.0.0
Obsoleton/a
wp_filter_kses ( $data )
Parâmetros:
  • (string) $data Content to filter, expected to be escaped with slashes.
    Required: Yes
Retorna:
  • (string) Filtered content.
Definido em:
Codex:

Sanitize content with allowed HTML KSES rules.

This function expects slashed data.



Fonte

function wp_filter_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), current_filter() ) );
}