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



wp_filter_post_kses ›

Desde2.0.0
Obsoleton/a
wp_filter_post_kses ( $data )
Parâmetros:
  • (string) $data Post content to filter, expected to be escaped with slashes.
    Required: Yes
Retorna:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Definido em:
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.



Fonte

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