do_parse_request хук-фильтр . WP 3.5.0
Filters whether to parse the request.
Использование
add_filter( 'do_parse_request', 'filter_function_name_4937', 10, 3 ); function filter_function_name_4937( $bool, $this, $extra_query_vars ){ // filter... return $bool; }
- $bool(true/false)
- Whether or not to parse the request.
По умолчанию: true - $this(WP)
- Current WordPress environment instance.
- $extra_query_vars(массив/строка)
- Extra passed query variables.
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
wp-includes/class-wp.php 145
if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) ) {