On this page
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
$datamixed Required-
The array, object, or scalar value to inspect.
Return
mixed The filtered content.
Source
File: wp-includes/kses.php. View all references
function wp_kses_post_deep( $data ) {
return map_deep( $data, 'wp_kses_post' );
}
Related
Uses
| Uses | Description |
|---|---|
| map_deep() wp-includes/formatting.php | Maps a function to all non-iterable elements of an array or an object. |
Used By
| Used By | Description |
|---|---|
| wp_read_image_metadata() wp-admin/includes/image.php | Gets extended image metadata, exif or iptc as available. |
Changelog
| Version | Description |
|---|---|
| 4.4.2 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_kses_post_deep