wphooks.info - widget_archives_args

widget_archives_args

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/widgets/class-wp-widget-archives.php:
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
		 * Filters the arguments for the Archives widget.
		 *
		 * @since 2.8.0
		 * @since 4.9.0 Added the `$instance` parameter.
		 *
		 * @see wp_get_archives()
		 *
		 * @param array $args     An array of Archives option arguments.
		 * @param array $instance Array of settings for the current widget.
		 */
		wp_get_archives( apply_filters( 'widget_archives_args', array(
			'type'            => 'monthly',
			'show_post_count' => $c
		), $instance ) );
		?>
		</ul>
		<?php
		}

		echo $args['after_widget'];