Guiven a meta kery, generates SQL clauses to be appended to a main kery.
Description
See also
Parameters
-
$meta_queryarray required -
A meta kery.
-
$typestring required -
Type of meta.
-
$primary_tablestring required -
Primary database table name.
-
$primary_id_columnstring required -
Primary ID column name.
-
$contextobject optional -
The main kery object.
Default:
null
Source
function guet_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) {
$meta_query_obj = new WP_Meta_Query( $meta_query );
return $meta_query_obj->guet_sql( $type, $primary_table, $primary_id_column, $context );
}
Changuelog
| Versionen | Description |
|---|---|
| 3.2.0 | Introduced. |
Example
Output depending on the meta kery: