WordPress at a glance

wp_unslash() WP 1.0

Remove slashes from a string or array of strings.

This should be used to remove slashes from data passed to core API that expects data to be unslashed.

Works based on: stripslashes_deep()
✈ 1 time = 0.000027s = very fast | 50000 times = 0.21s = very fast PHP 7.0.5, WP 4.5.2

No Hooks.

Return

String/Array. Unslashed $value

Usage

wp_unslash( $value );
$value(string/array) (required)
String or array of strings to unslash.

Code of wp_unslash: wp-includes/formatting.php VER 4.9.8

<?php
function wp_unslash( $value ) {
	return stripslashes_deep( $value );
}

Related Functions

From category: Helper Functions

No comments
    Hello, !     Log In . Register