wp_kses_post( string $data )

Sanitize content for allowed HTML tags for post content.


Description Description

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


Parameters Parameters

$data

(string) (Required) Post content to filter


Top ↑

Return Return

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


Top ↑

Source Source

File: wp-includes/kses.php

function wp_kses_post( $data ) {
	return wp_kses( $data, 'post' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.