WP_Date_Query::build_value

SummerySummery

Builds and validates a value string based on the comparison operator.

Syntax

WP_Date_Query::build_value( string $compare, string|array $value )

ParametersParameters

$compare

(string) (Required) The compare operator to use

$value

(string|array) (Required) The value

ReturnReturn

(string|false|int) The value to be used in SQL or false on error.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.7.0 Introduced.
Scroll to Top