asp_query_{type}
Gives access to the query string, before executing.
Gives access to the specific type of search query string, before executing.
Types
asp_query_cpt
asp_query_indextable
asp_query_attachments
asp_query_terms
asp_query_users
asp_query_comments
Parameters
$query (string) - SQL query string
$args (array) - Search arguments
$search_id (int) - Search instance ID
$is_ajax (bool) - Is the current request an ajax search
Always be careful when making direct changes to a query, as it is directly sent to the database server for execution.
Usage
Last updated