WP_Date_Query::validate_date_values

SummerySummery

Validates the given date_query values and triggers errors if something is not valid.

Syntax

WP_Date_Query::validate_date_values( array $date_query = array() )

DescriptionDescription

Note that date queries with invalid date ranges are allowed to continue (though of course no items will be found for impossible dates). This method only generates debug notices for these cases.

ParametersParameters

$date_query

(array) (Optional) The date_query array.

Default value: array()

ReturnReturn

(bool) True if all values in the query are valid, false if one or more fail.

SourceSource

File: wp-includes/class-wp-date-query.php


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top