Title: urldecode_deep
Published: December 9, 2015
Last modified: February 24, 2026

---

# urldecode_deep( mixed $value ): mixed

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#wp--skip-link--target)

Navigates through an array, object, or scalar, and decodes URL-encoded values

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#parameters)󠁿

 `$value`mixedrequired

The array or string to be decoded.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#return)󠁿

 mixed The decoded value.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#source)󠁿

    ```php
    function urldecode_deep( $value ) {
    	return map_deep( $value, 'urldecode' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/formatting.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/formatting.php#L2908)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/formatting.php#L2908-L2910)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#related)󠁿

| Uses | Description | 
| [map_deep()](https://developer.wordpress.org/reference/functions/map_deep/)`wp-includes/formatting.php` |

Maps a function to all non-iterable elements of an array or an object.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/urldecode_deep/?output_format=md#comment-content-4786)
 2.   [ruvee](https://profiles.wordpress.org/ruvee/)  [  5 years ago  ](https://developer.wordpress.org/reference/functions/urldecode_deep/#comment-4786)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Furldecode_deep%2F%23comment-4786)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Furldecode_deep%2F%23comment-4786)
 4. #Example
 5.     ```php
        $decoded_url = urldecode( 'example.com/search/search+query%3Fpost_type%3Dproduct' );
    
        echo $decoded_url;
        ```
    
 6. And the result would be:
 7.     ```php
        example.com/search/search query?post_type=product
        ```
    
 8.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Furldecode_deep%2F%3Freplytocom%3D4786%23feedback-editor-4786)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Furldecode_deep%2F)
before being able to contribute a note or feedback.