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 $result The array populated with variables.
*
* @return array
*/
function wp_kama_parse_str_filter( $result ){
// filter...
return $result;
}
- $result(array)
- The array populated with variables.
Changelog
| Since 2.2.1 | Introduced. |
Where the hook is called
wp_parse_str
wp-includes/formatting.php 5184
$result = apply_filters( 'wp_parse_str', $result );