Warning: This hook has been deprecated. Use ‘query_vars’ or ‘request’ filters instead.
query_string WordPress Hook
The query_string hook is used to modify the query string that is used to generate the main query for a request. This hook is called after the query string has been parsed, but before the main query is executed. It can be used to modify the main query, or to add additional queries.
apply_filters_deprecated( 'query_string', string $query_string ) #
Filters the query string before parsing.
Parameters
- $query_string
(string)The query string to modify.
Source
File: wp-includes/class-wp.php
Changelog
Version | Description |
---|---|
2.1.0 | Use 'query_vars' or 'request' filters instead. |
1.5.0 | Introduced. |