On this page
apply_filters( 'date_query_valid_columns', string[] $valid_columns )
Filters the list of valid date query columns.
Parameters
$valid_columnsstring[]-
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','registered','last_updated'.
Source
File: wp-includes/class-wp-date-query.php. View all references
if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ), true ) ) {
Related
Used By
| Used By | Description |
|---|---|
| WP_Date_Query::validate_column() wp-includes/class-wp-date-query.php | Validates a column name parameter. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/date_query_valid_columns