wp_parse_str
Filters the array of variables derived from a parsed string.
Usage
add_filter( 'wp_parse_str', 'wp_kama_parse_str_filter' ); /** * Function for `wp_parse_str` filter-hook. * * @param array $array The array populated with variables. * * @return array */ function wp_kama_parse_str_filter( $array ){ // filter... return $array; }
- $array(array)
- The array populated with variables.
Changelog
Since 2.2.1 | Introduced. |
Where the hook is called
wp_parse_str
wp-includes/formatting.php 5049
$array = apply_filters( 'wp_parse_str', $array );