apply_filters( 'date_query_valid_columns', string[] $valid_columns )

Filters the list of valid date query columns.


Description Description


Parameters Parameters

$valid_columns

(string[]) 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'


Top ↑

Source Source

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

View on Trac


Top ↑

Changelog Changelog

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.