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 |
---|---|
525 | <p><label for="calendar-title"><?php _e('Title:'); ?> <input style="width: 250px;" id="calendar-title" name="calendar-title" type="text" value="<?php echo $title; ?>" /></label></p> |
526 | <input type="hidden" id="calendar-submit" name="calendar-submit" value="1" /> |
527 | <?php |
528 | } |
529 |
|
530 | function wp_widget_text($args, $number = 1) { |
531 | extract($args); |
532 | $options = get_option('widget_text'); |
533 | $title = $options[$number]['title']; |
534 | $text = apply_filters( 'widget_text', $options[$number]['text'] ); |
535 | ?> |
536 | <?php echo $before_widget; ?> |
537 | <?php if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?> |
538 | <div class="textwidget"><?php echo $text; ?></div> |
539 | <?php echo $after_widget; ?> |
540 | <?php |
541 | } |
542 |
|
543 | function wp_widget_text_control($number) { |