get_meta_sql Wordpress function


Description:

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


Syntax:


Arguments:

(array) $meta_query A meta query
(string) $type Type of meta
(string) $primary_table
(string) $primary_id_column
(object) $context (optional) The main query object


Return Type:

(array() 'join' => $join_sql, 'where' => $where_sql )


Define At:

wp-includes/meta.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_meta_sql


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×