WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1050 | $title = $tax->labels->name; |
1051 | } |
1052 | } |
1053 | $title = apply_filters('widget_title', $title, $instance, $this->id_base); |
1054 |
|
1055 | echo $before_widget; |
1056 | if ( $title ) |
1057 | echo $before_title . $title . $after_title; |
1058 | echo '<div class="tagcloud">'; |
1059 | wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy) ) ); |
1060 | echo "</div>\n"; |
1061 | echo $after_widget; |
1062 | } |
1063 |
|
1064 | function update( $new_instance, $old_instance ) { |
1065 | $instance['title'] = strip_tags(stripslashes($new_instance['title'])); |
1066 | $instance['taxonomy'] = stripslashes($new_instance['taxonomy']); |
1067 | return $instance; |
1068 | } |