stripslashes_from_strings_only

Callback function for `stripslashes_deep()` which strips slashes from strings.

Description

stripslashes_from_strings_only( (mixed) $value ); 

Parameters (1)

0. $value (mixed)
The array or string to be stripped.

Usage

  1. if ( !function_exists( 'stripslashes_from_strings_only' ) ) { 
  2. require_once ABSPATH . WPINC . '/formatting.php'; 
  3.  
  4. // The array or string to be stripped. 
  5. $value = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = stripslashes_from_strings_only($value); 
  9.  

Defined (1)

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

/wp-includes/formatting.php  
  1. function stripslashes_from_strings_only( $value ) { 
  2. return is_string( $value ) ? stripslashes( $value ) : $value;