wphooks.info - widget_archives_dropdown_args

widget_archives_dropdown_args

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/widgets/class-wp-widget-archives.php:
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
			 * Filters the arguments for the Archives widget drop-down.
			 *
			 * @since 2.8.0
			 * @since 4.9.0 Added the `$instance` parameter.
			 *
			 * @see wp_get_archives()
			 *
			 * @param array $args     An array of Archives widget drop-down arguments.
			 * @param array $instance Settings for the current Archives widget instance.
			 */
			$dropdown_args = apply_filters( 'widget_archives_dropdown_args', array(
				'type'            => 'monthly',
				'format'          => 'option',
				'show_post_count' => $c
			), $instance );

			switch ( $dropdown_args['type'] ) {
				case 'yearly':
					$label = __( 'Select Year' );
					break;