Skip to content

Instantly share code, notes, and snippets.

@DrewAPicture
Created October 13, 2014 05:41
Show Gist options
  • Save DrewAPicture/ee963ad0b7f2c2964680 to your computer and use it in GitHub Desktop.
Save DrewAPicture/ee963ad0b7f2c2964680 to your computer and use it in GitHub Desktop.
<?php
[13-Oct-2014 05:29:15 UTC] Array
(
[content] => One or more associative arrays of date query parameters.
[0] => Array
(
[content] =>
[types] => Array
(
[0] => array
)
[$column] => Array
(
[content] => Optional. The column to query against. If undefined, inherits the value of the $default_column parameter. Default 'post_date'. Accepts 'post_date', 'post_date_gmt', 'post_modified','post_modified_gmt', 'comment_date', 'comment_date_gmt'.
[types] => Array
(
[0] => string
)
)
[$compare] => Array
(
[content] => Optional. The comparison operator. Default '='. Accepts '=', '!=', '>', '>=', '<', '<=', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'.
[types] => Array
(
[0] => string
)
)
[$relation] => Array
(
[content] => Optional. The boolean relationship between the date queryies. Default 'OR'. Accepts 'OR', 'AND'.
[types] => Array
(
[0] => string
)
)
[1] => Array
(
[content] =>
[types] => Array
(
[0] => array
)
[$before] => Array
(
[content] => Optional. Date to retrieve posts before. Accepts strtotime()-compatible string, or array of 'year', 'month', 'day' values. {
[types] => Array
(
[0] => string
[1] => array
)
[$year] => Array
(
[content] => The four-digit year. Default empty. Accepts any four-digit year.
[types] => Array
(
[0] => string
)
)
[$month] => Array
(
[content] => Optional when passing array.The month of the year. Default (string:empty)|(array:1). Accepts numbers 1-12.
[types] => Array
(
[0] => string
)
)
[$day] => Array
(
[content] => Optional when passing array.The day of the month. Default (string:empty)|(array:1). Accepts numbers 1-31.
[types] => Array
(
[0] => string
)
)
)
[$after] => Array
(
[content] => Optional. Date to retrieve posts after. Accepts strtotime()-compatible string, or array of 'year', 'month', 'day' values. {
[types] => Array
(
[0] => string
[1] => array
)
[$year] => Array
(
[content] => The four-digit year. Default empty. Accepts any four-digit year.
[types] => Array
(
[0] => string
)
)
[$month] => Array
(
[content] => Optional when passing array.The month of the year. Default (string:empty)|(array:12). Accepts numbers 1-12.
[types] => Array
(
[0] => string
)
)
[$day] => Array
(
[content] => Optional when passing array.The day of the month. Default (string:empty)|(array:last day of month). Accepts numbers 1-31.
[types] => Array
(
[0] => string
)
)
)
[$column] => Array
(
[content] => Optional. Used to add a clause comparing a column other than the column specified in the top-level $column parameter. Default is the value of top-level $column. Accepts 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'.
[types] => Array
(
[0] => string
)
)
[$compare] => Array
(
[content] => Optional. The comparison operator. Default '='. Accepts '=', '!=', '>', '>=', '<', '<=', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'.
[types] => Array
(
[0] => string
)
)
[$inclusive] => Array
(
[content] => Optional. Include results from dates specified in 'before' or 'after'. Default. Accepts.
[types] => Array
(
[0] => bool
)
)
[$year] => Array
(
[content] => Optional. The four-digit year number. Default empty. Accepts any four-digit year.
[types] => Array
(
[0] => int
)
)
[$month] => Array
(
[content] => Optional. The two-digit month number. Default empty. Accepts numbers 1-12.
[types] => Array
(
[0] => int
)
)
[$week] => Array
(
[content] => Optional. The week number of the year. Default empty. Accepts numbers 0-53.
[types] => Array
(
[0] => int
)
)
[$dayofyear] => Array
(
[content] => Optional. The day number of the year. Default empty. Accepts numbers 1-366.
[types] => Array
(
[0] => int
)
)
[$day] => Array
(
[content] => Optional. The day of the month. Default empty. Accepts numbers 1-31.
[types] => Array
(
[0] => int
)
)
[$dayofweek] => Array
(
[content] => Optional. The day number of the week. Default empty. Accepts numbers 1-7.
[types] => Array
(
[0] => int
)
)
[$hour] => Array
(
[content] => Optional. The hour of the day. Default empty. Accepts numbers 0-23.
[types] => Array
(
[0] => int
)
)
[$minute] => Array
(
[content] => Optional. The minute of the hour. Default empty. Accepts numbers 0-60.
[types] => Array
(
[0] => int
)
)
[$second] => Array
(
[content] => Optional. The second of the minute. Default empty. Accepts numbers 0-60.
[types] => Array
(
[0] => int
)
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment