apply_filters( 'date_query_valid_columns', array $valid_columns )

Filters the list of valid date query columns.


Parameters

$valid_columns

An array of valid date query columns. Defaults are 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt', 'user_registered'


Source

File: wp-includes/date.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.1.0 Added 'user_registered' to the default recognized columns.
WP-3.7.0 Introduced.