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 |
---|---|
964 |
|
965 | function widget( $args, $instance ) { |
966 | extract($args); |
967 | $title = apply_filters('widget_title', empty($instance['title']) ? __('Tags') : $instance['title']); |
968 |
|
969 | echo $before_widget; |
970 | if ( $title ) |
971 | echo $before_title . $title . $after_title; |
972 | echo '<div>'; |
973 | wp_tag_cloud(apply_filters('widget_tag_cloud_args', array())); |
974 | echo "</div>\n"; |
975 | echo $after_widget; |
976 | } |
977 |
|
978 | function update( $new_instance, $old_instance ) { |
979 | $instance['title'] = strip_tags(stripslashes($new_instance['title'])); |
980 | return $instance; |
981 | } |
982 |
|