Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_archives_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
229                echo $before_title . $title . $after_title;
230
231           if ( $d ) {
232 ?>
233           <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo esc_attr(__('Select Month')); ?></option> <?php wp_get_archives(apply_filters('widget_archives_dropdown_args', array('type' => 'monthly', 'format' => 'option', 'show_post_count' => $c))); ?> </select>
234 <?php
235           } else {
236 ?>
237           <ul>
238           <?php wp_get_archives(apply_filters('widget_archives_args', array('type' => 'monthly', 'show_post_count' => $c))); ?>
239           </ul>
240 <?php
241           }
242
243           echo $after_widget;
244      }
245
246      function update( $new_instance, $old_instance ) {
247           $instance = $old_instance;