Summery Summery
Generates SQL clauses to be appended to a main query.
Syntax Syntax
Parameters Parameters
- $primary_table
-
(Required) Database table where the object being filtered is stored (eg wp_users).
- $primary_id_column
-
(Required) ID column for the filtered object in $primary_table.
Return Return
(array) Array containing JOIN and WHERE SQL clauses to append to the main query.
- 'join'
(string) SQL fragment to append to the main JOIN clause. - 'where'
(string) SQL fragment to append to the main WHERE clause.
Source Source
File: wp-includes/class-wp-tax-query.php
public function get_sql( $primary_table, $primary_id_column ) { $this->primary_table = $primary_table; $this->primary_id_column = $primary_id_column; return $this->get_sql_clauses(); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |