wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_kses_post › WordPress Function

Depuis2.9.0
Dépréciéen/a
wp_kses_post ( $data )
Paramètres:
  • (string) $data Post content to filter.
    Requis: Oui
Retourne:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Défini(e) dans:
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.


Source

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