Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_filter_post_kses ›

Da2.0.0
Deprecaton/a
wp_filter_post_kses ( $data )
Parametri:
  • (string) $data Post content to filter, expected to be escaped with slashes.
    Richiesto:
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 slashed data.



Sorgenti

function wp_filter_post_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), 'post' ) );
}