pre_months_dropdown_query

pre_months_dropdown_query

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_months_dropdown_query') is found 1 times:

  • /wp-admin/includes/class-wp-list-table.php line 728
    		 *
    		 * @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'] ) ) {