WordPress at a glance
filter is not described

widget_archives_dropdown_args filter-hook . WP 2.8.0

Filters the arguments for the Archives widget drop-down.

Usage

add_filter( 'widget_archives_dropdown_args', 'filter_function_name_5241', 10, 2 );
function filter_function_name_5241( $args, $instance ){
	// filter...

	return $args;
}
$args(array)
An array of Archives widget drop-down arguments.
$instance(array)
Settings for the current Archives widget instance.

Notes

  • Since 4.9.0 Added the $instance parameter.

Where the hook is called

WP_Widget_Archives::widget()
render_block_core_archives()
wp-includes/widgets/class-wp-widget-archives.php 74-78
$dropdown_args = apply_filters( 'widget_archives_dropdown_args', array(
	'type'            => 'monthly',
	'format'          => 'option',
	'show_post_count' => $c
), $instance );
wp-includes/blocks/archives.php 38-45
$dropdown_args = apply_filters(
	'widget_archives_dropdown_args',
	array(
		'type'            => 'monthly',
		'format'          => 'option',
		'show_post_count' => $show_post_count,
	)
);

Where the hook is used (in WP core)

Does not used.