wp_parse_str
Filters the array of variables derived from a parsed string.
Использование
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(массив)
- The array populated with variables.
Список изменений
| С версии 2.2.1 | Введена. |
Где вызывается хук
wp_parse_str
wp-includes/formatting.php 5175
$result = apply_filters( 'wp_parse_str', $result );