Uses
| Uses | Description |
|---|---|
| wp-includes/class-wp-tax-query.php: WP_Tax_Query::__construct() | Constructor. |
Given a taxonomy query, generates SQL to be appended to a main query.
(array) (Required) A compact tax query
(string) (Required)
(string) (Required)
(array)
File: wp-includes/taxonomy.php
function get_tax_sql( $tax_query, $primary_table, $primary_id_column ) {
$tax_query_obj = new WP_Tax_Query( $tax_query );
return $tax_query_obj->get_sql( $primary_table, $primary_id_column );
} | Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_tax_sql