wp_kses_post


wp_kses_post ( $data )

Parameters:
  • (string) data Post content to filter.
Returns:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Defined at:

Description

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.

Related Functions

wp_kses_post_deep, wp_kses_split, wp_insert_post, wp_kses_hook, wp_kses_attr

Top Google Results

User discussions

wpseek mobile