A WordPress-centric search engine for devs and theme authors



stripslashes_from_strings_only ›

Since4.4.0
Deprecatedn/a
stripslashes_from_strings_only ( $value )
Parameters:
  • (mixed) $value The array or string to be stripped.
    Required: Yes
Returns:
  • (mixed) $value The stripped value.
Defined at:
Codex:

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



Source

function stripslashes_from_strings_only( $value ) {
	return is_string( $value ) ? stripslashes( $value ) : $value;
}