WordPress at a glance
filter is not described

date_query_valid_columns filter-hook . WP 3.7.0

Filters the list of valid date query columns.


add_filter( 'date_query_valid_columns', 'filter_function_name_9106' );
function filter_function_name_9106( $valid_columns ){
	// filter...

	return $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'


  • Since 4.1.0 Added 'user_registered' to the default recognized columns.

Where the hook is called

wp-includes/date.php 501
if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) ) {

Where the hook is used (in WP core)

Does not used.