W3cubDocs

/WordPress

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

Filters the arguments for the Archives widget drop-down.

Description

See also

Parameters

$argsarray
An array of Archives widget drop-down arguments.
$instancearray
Settings for the current Archives widget instance.

Source

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

Changelog

Version Description
4.9.0 Added the $instance parameter.
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args