Summery Summery

Sanitizes content for allowed HTML tags for post content.

Syntax Syntax

wp_filter_post_kses( string $data )

Description Description

Post content refers to the page contents of the ‘post’ type and not $_POST data from forms.

This function expects slashed data.

Parameters Parameters


(string) (Required) Post content to filter, expected to be escaped with slashes.

Return Return

(string) Filtered post content with allowed HTML tags and attributes intact.

Source Source

File: wp-includes/kses.php

 * @return string Content after decoded entities.
function wp_kses_decode_entities( $string ) {


Changelog Changelog

Version Description
2.0.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.