File: wp-includes/class-wp-date-query.php
-
Sanitizes a ‘relation’ operator.
-
Turns a first-order date query into SQL for a WHERE clause.
-
Recursive-friendly query sanitizer.
-
Determines whether this is a first-order clause.
-
Validates the given date_query values and triggers errors if something is not valid.
-
Generates SQL clauses to be appended to a main query.
-
Generates SQL clauses for a single query array.
-
Builds and validates a value string based on the comparison operator.
-
Builds a MySQL format date/time based on some query parameters.
-
Builds a query string for comparing time values (hour, minute, second).
-
classWP_Date_Query
Class for generating SQL clauses that filter a primary query according to date.
-
Constructor.
-
Determines and validates what comparison operator to use.
-
Validates a column name parameter.
-
Filters the list of valid date query columns.
-
methodWP_Date_Query::get_sql()
Generates WHERE clause to be appended to a main query.
-
hookget_date_sql
Filters the date query WHERE clause.
-
Turns a single date clause into pieces for a WHERE clause.