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 |
|---|---|
| 276 | } else { |
| 277 | printf(__ngettext('Theme <span class="b">%1$s</span> with <span class="b">%2$s Widget</span>', 'Theme <span class="b">%1$s</span> with <span class="b">%2$s Widgets</span>', $num_widgets), $ct->title, $num); |
| 278 | } |
| 279 | |
| 280 | echo '</p>'; |
| 281 | |
| 282 | update_right_now_message(); |
| 283 | |
| 284 | echo "\n\t".'</div>'; |
| 285 | do_action( 'rightnow_end' ); |
| 286 | do_action( 'activity_box_end' ); |
| 287 | } |
| 288 | |
| 289 | function wp_dashboard_quick_press() { |
| 290 | $drafts = false; |
| 291 | if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) { |
| 292 | $view = get_permalink( $_POST['post_ID'] ); |
| 293 | $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); |
| 294 | if ( 'post-quickpress-publish' == $_POST['action'] ) { |