months_dropdown_results

months_dropdown_results

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('months_dropdown_results') is found 1 times:

  • /wp-admin/includes/class-wp-list-table.php line 752
    		 *
    		 * @param object[] $months    Array of the months drop-down query results.
    		 * @param string   $post_type The post type.
    		 */
    		$months = apply_filters( 'months_dropdown_results', $months, $post_type );
    
    		$month_count = count( $months );
    
    		if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
    			return;
    		}