WordPress at a glance

stripslashes_deep() WP 1.0

Navigates through an array, object, or scalar, and removes slashes from the values.

Basis of: wp_unslash()

No Hooks.

Return

Mixed. Stripped value.

Usage

stripslashes_deep( $value );
$value(mixed) (required)
The value to be stripped.

Changelog

Since 2.0.0 Introduced.

Code of stripslashes_deep() WP 5.5.1

<?php
function stripslashes_deep( $value ) {
	return map_deep( $value, 'stripslashes_from_strings_only' );
}

From category: Helper Functions

No comments
    Log In . Register