WP_Tax_Query::get_sql_for_clause

SummerySummery

Generate SQL JOIN and WHERE clauses for a “first-order” query clause.

Syntax

WP_Tax_Query::get_sql_for_clause( array $clause, array $parent_query )

ParametersParameters

$clause

(array) (Required) Query clause (passed by reference).

$parent_query

(array) (Required) Parent query array.

ReturnReturn

(array) Array containing JOIN and WHERE SQL clauses to append to a first-order query.

  • 'join'
    (string) SQL fragment to append to the main JOIN clause.
  • 'where'
    (string) SQL fragment to append to the main WHERE clause.

SourceSource

File: wp-includes/class-wp-tax-query.php


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top