wpseek.com
A WordPress-centric search engine for devs and theme authors



date_query_valid_columns › WordPress Filter Hooks

Since4.6.0
Deprecatedn/a
apply_filters( 'date_query_valid_columns', $valid_columns )
Parameters:
  • (string[]) $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', 'registered', 'last_updated'.
    Required: Yes
Defined at:
Codex:

Filters the list of valid date query columns.





Source

if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ), true ) ) {