wp_filter_post_kses

SummerySummery

Sanitizes content for allowed HTML tags for post content.

Syntax

wp_filter_post_kses( string $data )

DescriptionDescription

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

This function expects slashed data.

ParametersParameters

$data

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

ReturnReturn

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

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
2.0.0 Introduced.
Scroll to Top