stripslashes_from_strings_only()
Callback function for stripslashes_deep() strips slashes from strings.
No Hooks.
Returns
Mixed. The stripped value.
Usage
stripslashes_from_strings_only( $value );
- $value(mixed) (required)
- The array or string to be stripped.
Changelog
| Since 4.4.0 | Introduced. |
stripslashes_from_strings_only() stripslashes from strings only code WP 6.9.1
function stripslashes_from_strings_only( $value ) {
return is_string( $value ) ? stripslashes( $value ) : $value;
}