Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_tag_cloud_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
1003                     $title = $tax->labels->name;
1004                }
1005           }
1006           $title = apply_filters('widget_title', $title, $instance, $this->id_base);
1007
1008           echo $before_widget;
1009           if ( $title )
1010                echo $before_title . $title . $after_title;
1011           echo '<div class="tagcloud">';
1012           wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy) ) );
1013           echo "</div>\n";
1014           echo $after_widget;
1015      }
1016
1017      function update( $new_instance, $old_instance ) {
1018           $instance['title'] = strip_tags(stripslashes($new_instance['title']));
1019           $instance['taxonomy'] = stripslashes($new_instance['taxonomy']);
1020           return $instance;
1021      }