Title: widget_archives_dropdown_args
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘widget_archives_dropdown_args’, array $args, array $instance )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#wp--skip-link--target)

Filters the arguments for the Archives widget drop-down.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#see-also)󠁿

 * [wp_get_archives()](https://developer.wordpress.org/reference/functions/wp_get_archives/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#parameters)󠁿

 `$args`array

An array of Archives widget drop-down arguments.

`$instance`array

Settings for the current Archives widget instance.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#source)󠁿

    ```php
    $dropdown_args = apply_filters(
    	'widget_archives_dropdown_args',
    	array(
    		'type'            => 'monthly',
    		'format'          => 'option',
    		'show_post_count' => $count,
    	),
    	$instance
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/widgets/class-wp-widget-archives.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/widgets/class-wp-widget-archives.php#L76)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/widgets/class-wp-widget-archives.php#L76-L84)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Widget_Archives::widget()](https://developer.wordpress.org/reference/classes/wp_widget_archives/widget/)`wp-includes/widgets/class-wp-widget-archives.php` |

Outputs the content for the current Archives widget instance.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | Added the `$instance` parameter. | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwidget_archives_dropdown_args%2F)
before being able to contribute a note or feedback.