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 |
---|---|
944 | $widget_args = array( 'number' => $widget_args ); |
945 | $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) ); |
946 | extract( $widget_args, EXTR_SKIP ); |
947 |
|
948 | $options = get_option('widget_text'); |
949 | if ( !isset($options[$number]) ) |
950 | return; |
951 |
|
952 | $title = apply_filters('widget_title', $options[$number]['title']); |
953 | $text = apply_filters( 'widget_text', $options[$number]['text'] ); |
954 | ?> |
955 | <?php echo $before_widget; ?> |
956 | <?php if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?> |
957 | <div class="textwidget"><?php echo $text; ?></div> |
958 | <?php echo $after_widget; ?> |
959 | <?php |
960 | } |
961 |
|
962 | /** |