pre_months_dropdown_query

pre_months_dropdown_query

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('pre_months_dropdown_query') is found 1 times:

  • /wp-admin/includes/class-wp-list-table.php line 728
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    *
     * @param object[]|false $months   'Months' drop-down results. Default false.
     * @param string         $post_type The post type.
     */
    $months = apply_filters( 'pre_months_dropdown_query', false, $post_type );
     
    if ( ! is_array( $months ) ) {
        $extra_checks = "AND post_status != 'auto-draft'";
        if ( ! isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) {
            $extra_checks .= " AND post_status != 'trash'";
        } elseif ( isset( $_GET['post_status'] ) ) {