wp_kses_post

SummerySummery

Sanitizes content for allowed HTML tags for post content.

Syntax

wp_kses_post( string $data )

DescriptionDescription

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

This function expects unslashed data.

ParametersParameters

$data

(string) (Required) Post content to filter.

ReturnReturn

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

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
2.9.0 Introduced.
Scroll to Top