wp_kses_post

Advertisement

Summery Summery

Sanitizes content for allowed HTML tags for post content.

Syntax Syntax

wp_kses_post( string $data )

Description Description

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

This function expects unslashed data.

Parameters Parameters

$data

(Required) Post content to filter.

Return Return

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

Source Source

File: wp-includes/kses.php

 * @return string
 */
function _wp_kses_decode_entities_chr( $match ) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply