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 |
---|---|
1029 | $title = $tax->labels->name; |
1030 | } |
1031 | } |
1032 | $title = apply_filters('widget_title', $title, $instance, $this->id_base); |
1033 |
|
1034 | echo $before_widget; |
1035 | if ( $title ) |
1036 | echo $before_title . $title . $after_title; |
1037 | echo '<div class="tagcloud">'; |
1038 | wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy) ) ); |
1039 | echo "</div>\n"; |
1040 | echo $after_widget; |
1041 | } |
1042 |
|
1043 | function update( $new_instance, $old_instance ) { |
1044 | $instance['title'] = strip_tags(stripslashes($new_instance['title'])); |
1045 | $instance['taxonomy'] = stripslashes($new_instance['taxonomy']); |
1046 | return $instance; |
1047 | } |