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 |
|---|---|
| 372 | if ( isset($post_ID) && 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : |
| 373 | function post_revisions_meta_box($post) { |
| 374 | wp_list_post_revisions(); |
| 375 | } |
| 376 | add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', 'advanced', 'core'); |
| 377 | endif; |
| 378 | |
| 379 | do_meta_boxes('post', 'advanced', $post); |
| 380 | |
| 381 | do_action('dbx_post_sidebar'); |
| 382 | ?> |
| 383 | </div> |
| 384 | </div> |
| 385 | |
| 386 | </div> |
| 387 | |
| 388 | </form> |
| 389 | |
| 390 | <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?> |