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.


Top ↑

Source

File: wp-includes/class-wp.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Use 'query_vars' or 'request' filters instead.
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.