Generates SQL clauses to be appended to a main query.
Parameters
$primary_table
stringrequired- Database table where the object being filtered is stored (eg wp_users).
$primary_id_column
stringrequired- ID column for the filtered object in $primary_table.
Source
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();
}
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.