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 |
---|---|
97 | break; |
98 | case 'aside': |
99 | default: |
100 | $format_string = __( 'Asides', 'twentyfourteen' ); |
101 | $format_string_more = __( 'More asides', 'twentyfourteen' ); |
102 | break; |
103 | } |
104 |
|
105 | $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] ); |
106 | $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $format_string : $instance['title'], $instance, $this->id_base ); |
107 |
|
108 | $ephemera = new WP_Query( array( |
109 | 'order' => 'DESC', |
110 | 'posts_per_page' => $number, |
111 | 'no_found_rows' => true, |
112 | 'post_status' => 'publish', |
113 | 'post__not_in' => get_option( 'sticky_posts' ), |
114 | 'tax_query' => array( |
115 | array( |