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

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

25 related functions found for: get_meta_sql

Top ↑

Related terms found for this post

wp-parser-related-wordsget, meta, meta-php, queri, query, sql, wp-includes
wp-parser-packageMeta, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • get
  • meta
  • Meta
  • meta-php
  • queri
  • query
  • sql
  • wp-includes
  • wp-includes/meta.php

Top ↑

Description Description

Top ↑

Parameters Parameters


(array) (Required) A meta query.


(string) (Required) Type of meta.


(string) (Required) Primary database table name.


(string) (Required) Primary ID column name.


(object) (Optional) The main query object

Default value: null

Top ↑

Return Return

(array) Associative array of JOIN and WHERE SQL.

Top ↑

Source Source

File: wp-includes/meta.php


Top ↑

Changelog Changelog

Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.