urlencode_deep() WordPress Function
The urlencode_deep() Wordpress function is used to encode URL parameters. This function is useful for encoding URL parameters that contain non-ASCII characters.
urlencode_deep( mixed $value ) #
Navigates through an array, object, or scalar, and encodes the values to be used in a URL.
Parameters
- $value
(mixed)(Required)The array or string to be encoded.
Return
(mixed) The encoded value.
Source
File: wp-includes/formatting.php
function urlencode_deep( $value ) { return map_deep( $value, 'urlencode' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |