Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Mobile
    • Hosting
    • Openverse ↗︎
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
  • Community
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
  • About
    • About WordPress
    • Showcase
    • Enterprise
    • Gutenberg ↗︎
    • WordPress Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-term-query.php

WP_Term_Query::generate_cache_key()

Method: Generate cache key.

Source: wp-includes/class-wp-term-query.php:1147

Used by 1 function | Uses 3 functions

WP_Term_Query::format_terms()

Method: Format response depending on field requested.

Source: wp-includes/class-wp-term-query.php:964

Used by 1 function | Uses 0 functions

terms_pre_query

Filter Hook: Filters the terms array before the query takes place.

Source: wp-includes/class-wp-term-query.php:771

Used by 1 function | Uses 0 functions

WP_Term_Query::populate_terms()

Method: Creates an array of term objects from an array of term IDs.

Source: wp-includes/class-wp-term-query.php:1108

Used by 1 function | Uses 1 function

WP_Term_Query::parse_orderby_meta()

Method: Generate the ORDER BY clause for an ‘orderby’ param that is potentially related to a meta query.

Source: wp-includes/class-wp-term-query.php:1009

Used by 1 function | Uses 0 functions

WP_Term_Query::parse_order()

Method: Parse an ‘order’ query variable and cast it to ASC or DESC as necessary.

Source: wp-includes/class-wp-term-query.php:1068

Used by 1 function | Uses 0 functions

WP_Term_Query::get_search_sql()

Method: Used internally to generate a SQL string related to the ‘search’ parameter.

Source: wp-includes/class-wp-term-query.php:1090

Used by 1 function | Uses 2 functions

WP_Term_Query::get_terms()

Method: Retrieves the query results.

Source: wp-includes/class-wp-term-query.php:348

Used by 1 function | Uses 30 functions

pre_get_terms

Action Hook: Fires before terms are retrieved.

Source: wp-includes/class-wp-term-query.php:365

Used by 1 function | Uses 0 functions

WP_Term_Query::parse_orderby()

Method: Parse and sanitize ‘orderby’ keys passed to the term query.

Source: wp-includes/class-wp-term-query.php:905

Used by 1 function | Uses 3 functions

WP_Term_Query

Class: Class used for querying terms.

Source: wp-includes/class-wp-term-query.php:19

Used by 0 functions | Uses 0 functions

WP_Term_Query::__construct()

Method: Constructor.

Source: wp-includes/class-wp-term-query.php:196

Used by 5 functions | Uses 1 function

WP_Term_Query::parse_query()

Method: Parse arguments passed to the term query with default query parameters.

Source: wp-includes/class-wp-term-query.php:243

Used by 1 function | Uses 4 functions

parse_term_query

Action Hook: Fires after term query vars have been parsed.

Source: wp-includes/class-wp-term-query.php:291

Used by 1 function | Uses 0 functions

WP_Term_Query::query()

Method: Sets up the query and retrieves the results.

Source: wp-includes/class-wp-term-query.php:306

Used by 1 function | Uses 2 functions

get_terms_defaults

Filter Hook: Filters the terms query default arguments.

Source: wp-includes/class-wp-term-query.php:260

Used by 1 function | Uses 0 functions

get_terms_args

Filter Hook: Filters the terms query arguments.

Source: wp-includes/class-wp-term-query.php:408

Used by 1 function | Uses 0 functions

get_terms_orderby

Filter Hook: Filters the ORDERBY clause of the terms query.

Source: wp-includes/class-wp-term-query.php:941

Used by 1 function | Uses 0 functions

list_terms_exclusions

Filter Hook: Filters the terms to exclude from the terms query.

Source: wp-includes/class-wp-term-query.php:534

Used by 1 function | Uses 0 functions

get_terms_fields

Filter Hook: Filters the fields to select in the terms query.

Source: wp-includes/class-wp-term-query.php:699

Used by 1 function | Uses 0 functions

terms_clauses

Filter Hook: Filters the terms query SQL clauses.

Source: wp-includes/class-wp-term-query.php:731

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry