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 |
---|---|
43 |
|
44 | if ( isset( $cache[$args['widget_id']] ) ) { |
45 | echo $cache[$args['widget_id']]; |
46 | return; |
47 | } |
48 |
|
49 | ob_start(); |
50 | extract( $args, EXTR_SKIP ); |
51 |
|
52 | $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base); |
53 |
|
54 | if ( ! isset( $instance['number'] ) ) |
55 | $instance['number'] = '10'; |
56 |
|
57 | if ( ! $number = absint( $instance['number'] ) ) |
58 | $number = 10; |
59 |
|
60 | $ephemera_args = array( |
61 | 'order' => 'DESC', |