WPDev.one
Core Function
View Source on Trac ↗

wp_filter_post_kses()

wp_filter_post_kses( mixed $data )

Sanitizes content for allowed HTML tags for post content.

Parameters 1 required

Name / Type Description
$data
string

Post content to filter, expected to be escaped with slashes.

Required

Return Value

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

Function Information

Since Version
2.0.0
Source File
wp-includes/kses.php
Advertisement