wp_kses_post_deep( mixed $data ): mixed

Navigates through an array, object, or scalar, and sanitizes content for allowed HTML tags for post content.

Description

See also

Parameters

$datamixedrequired
The array, object, or scalar value to inspect.

Return

mixed The filtered content.

Source

function wp_kses_post_deep( $data ) {
	return map_deep( $data, 'wp_kses_post' );
}

Changelog

VersionDescription
4.4.2Introduced.

User Contributed Notes

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