WordPress at a glance
filter is not described

widget_archives_args filter-hook . WP 2.8.0

Filters the arguments for the Archives widget.

Usage

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

	return $args;
}
$args(array)
An array of Archives option arguments.
$instance(array)
Array of settings for the current widget.

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 117-120
wp_get_archives( apply_filters( 'widget_archives_args', array(
	'type'            => 'monthly',
	'show_post_count' => $c
), $instance ) );
wp-includes/blocks/archives.php 85-91
$archives_args = apply_filters(
	'widget_archives_args',
	array(
		'type'            => 'monthly',
		'show_post_count' => $show_post_count,
	)
);

Where the hook is used (in WP core)

Does not used.