wp_kses_post_deep

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

Description

wp_kses_post_deep( (mixed) $data ); 

Parameters (1)

0. $data (mixed)
The array, object, or scalar value to inspect.

Usage

  1. if ( !function_exists( 'wp_kses_post_deep' ) ) { 
  2. require_once ABSPATH . WPINC . '/kses.php'; 
  3.  
  4. // The array, object, or scalar value to inspect. 
  5. $data = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_kses_post_deep($data); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/kses.php  
  1. function wp_kses_post_deep( $data ) { 
  2. return map_deep( $data, 'wp_kses_post' );