rawurlencode_deep() WordPress Function
The rawurlencode_deep() function is used to encode URL information. It is a useful tool for making sure that your data is properly formatted for inclusion in a URL. This function is especially helpful when dealing with complex data structures that may need to be passed through a URL.
rawurlencode_deep( mixed $value ) #
Navigates through an array, object, or scalar, and raw-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 rawurlencode_deep( $value ) { return map_deep( $value, 'rawurlencode' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |