wp_kses_post_deep( mixed $data )

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

Description

See also

Parameters

$data

(mixed) (Required) The array, object, or scalar value to inspect.

Return

(mixed) The filtered content.

Source

File: wp-includes/kses.php

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

Changelog

Version Description
4.4.2 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_kses_post_deep