Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: parse_term_query

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
266           $this->query_vars = $query;
267
268           /**
269            * Fires after term query vars have been parsed.
270            *
271            * @since 4.6.0
272            *
273            * @param WP_Term_Query $this Current instance of WP_Term_Query.
274            */
275           do_action( 'parse_term_query', $this );
276      }
277
278      /**
279       * Sets up the query for retrieving terms.
280       *
281       * @since 4.6.0
282       *
283       * @param string|array $query Array or URL query string of parameters.
284       * @return array|int List of terms, or number of terms when 'count' is passed as a query var.