wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_kses_post › WordPress Function

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:

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' );
}