CB_Core_Date_Query
extends WP_Date_Query
in package
Table of Contents
Properties
- $column : string
- The column to query against. Can be changed via the query arguments.
Methods
- __construct() : mixed
- Constructor.
- __destruct() : mixed
- Destructor.
- register_date_column() : array<string|int, mixed>
- Registers our date column with WP Date Query to pass validation.
Properties
$column
The column to query against. Can be changed via the query arguments.
public
string
$column
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $date_query[, string $column = '' ]) : mixed
Parameters
- $date_query : array<string|int, mixed>
-
Date query arguments.
- $column : string = ''
-
THe DB column to query against.
Tags
__destruct()
Destructor.
public
__destruct() : mixed
register_date_column()
Registers our date column with WP Date Query to pass validation.
public
register_date_column([array<string|int, mixed> $retval = array() ]) : array<string|int, mixed>
Parameters
- $retval : array<string|int, mixed> = array()
-
Current DB columns.