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 |
|---|---|
| 345 | printf( __('Theme <span class="b">%1$s</span>'), $ct->title ); |
| 346 | } |
| 347 | } |
| 348 | echo '</p>'; |
| 349 | |
| 350 | update_right_now_message(); |
| 351 | |
| 352 | echo "\n\t".'<br class="clear" /></div>'; |
| 353 | do_action( 'rightnow_end' ); |
| 354 | do_action( 'activity_box_end' ); |
| 355 | } |
| 356 | |
| 357 | function wp_dashboard_quick_press() { |
| 358 | $drafts = false; |
| 359 | if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) { |
| 360 | $view = get_permalink( $_POST['post_ID'] ); |
| 361 | $edit = esc_url( get_edit_post_link( $_POST['post_ID'] ) ); |
| 362 | if ( 'post-quickpress-publish' == $_POST['action'] ) { |
| 363 | if ( current_user_can('publish_posts') ) |