Skip to content

Instantly share code, notes, and snippets.

@DrewAPicture
Last active August 29, 2015 14:07
Show Gist options
  • Save DrewAPicture/ca32b69ee09eeac6613c to your computer and use it in GitHub Desktop.
Save DrewAPicture/ca32b69ee09eeac6613c to your computer and use it in GitHub Desktop.
<?php
[13-Oct-2014 20:52:36 UTC] Array
(
[content] => Array of meta query clauses.
[$relation] => Array
(
[content] => Optional. The MySQL keyword used to join the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
[types] => Array
(
[0] => string
)
)
[0] => Array
(
[content] => Optional. An array of first-order clause parameters, or another fully-formed meta query.
[types] => Array
(
[0] => array
)
[$key] => Array
(
[content] => Meta key to filter by.
[types] => Array
(
[0] => string
)
)
[$value] => Array
(
[content] => Meta value to filter by.
[types] => Array
(
[0] => string
)
)
[$compare] => Array
(
[content] => MySQL operator used for comparing the $value. Accepts '=', '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN', 'REGEXP', 'NOT REGEXP', or 'RLIKE'. Default is 'IN' when `$value` is an array, '=' otherwise.
[types] => Array
(
[0] => string
)
)
[$type] => Array
(
[content] => MySQL data type that the meta_value column will be CAST to for comparisons. Accepts 'NUMERIC', 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', or 'UNSIGNED'. Default is 'CHAR'.
[types] => Array
(
[0] => string
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment