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



wp_kses_post › WordPress Function

Da2.9.0
Deprecaton/a
› wp_kses_post ( $data )
Parametri:
  • (string) $data Post content to filter.
    Richiesto: Sì
Ritorna:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Definito a:
Codex:

Sanitizes content for allowed HTML tags for post content.

Post content refers to the page contents of the 'post' type and not $_POST data from forms. This function expects unslashed data.


Sorgenti

function wp_kses_post( $data ) {
	return wp_kses( $data, 'post' );
}