get_meta_sql


get_meta_sql ( $meta_query, $type, $primary_table, $primary_id_column, $context = null )

Parameters:
  • (array) $meta_query A meta query.
  • (string) $type Type of meta.
  • (string) $primary_table Primary database table name.
  • (string) $primary_id_column Primary ID column name.
  • (object) $context Optional. The main query object
See:
  • WP_Meta_Query
Returns:
  • (array) Associative array of `JOIN` and `WHERE` SQL.
Defined at:

Description

Given a meta query, generates SQL clauses to be appended to a main query.

Related Functions

get_tax_sql, get_meta_keys, _get_meta_table, get_tags, get_media_items

Top Google Results

User discussions

wpseek mobile