WPDev.one
Core Function
View Source on Trac ↗

wp_kses_post()

wp_kses_post( mixed $data )

Sanitizes content for allowed HTML tags for post content.

Parameters 1 required

Name / Type Description
$data
string

Post content to filter.

Required

Return Value

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

Function Information

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