A WordPress-centric search engine for devs and theme authors



wp_kses_post ›

Since2.9.0
Deprecatedn/a
wp_kses_post ( $data )
Parameters:
  • (string) $data Post content to filter
    Required: Yes
Returns:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Defined at:
Codex:

Sanitize 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.



Source

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