Title: wp_parse_str
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘wp_parse_str’, array $result )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_parse_str/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_parse_str/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_parse_str/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_parse_str/?output_format=md#changelog)

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

Filters the array of variables derived from a parsed string.

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

 `$result`array

The array populated with variables.

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

    ```php
    $result = apply_filters( 'wp_parse_str', $result );
    ```

[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#L5184)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/formatting.php#L5184-L5184)

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

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

Parses a string into variables to be stored in an array.

  |

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

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

## User Contributed Notes

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