Summery Summery
Given a taxonomy query, generates SQL to be appended to a main query.
Syntax Syntax
Parameters Parameters
- $tax_query
-
(Required) A compact tax query
- $primary_table
-
(Required)
- $primary_id_column
-
(Required)
Return Return
(array)
Source Source
File: wp-includes/taxonomy.php
$term_ids = array_map( 'intval', $term_ids ); $taxonomies = "'" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "'"; $term_ids = "'" . implode( "', '", $term_ids ) . "'";
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |