wpcf7_strip_quote_deep

The Contact Form 7 wpcf7 strip quote deep function.

Description

wpcf7_strip_quote_deep( $arr ); 

Parameters (1)

0. $arr
The arr.

Usage

  1. if ( !function_exists( 'wpcf7_strip_quote_deep' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/formatting.php'; 
  3.  
  4. // The arr. 
  5. $arr = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_strip_quote_deep($arr); 
  9.  

Defined (1)

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

/includes/formatting.php  
  1. function wpcf7_strip_quote_deep( $arr ) { 
  2. if ( is_string( $arr ) ) { 
  3. return wpcf7_strip_quote( $arr ); 
  4.  
  5. if ( is_array( $arr ) ) { 
  6. $result = array(); 
  7.  
  8. foreach ( $arr as $key => $text ) { 
  9. $result[$key] = wpcf7_strip_quote_deep( $text ); 
  10.  
  11. return $result;