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.
This hook occurs 3 times in this file.
Line | Code |
---|---|
115 | $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM |
116 | if ( $post->post_author && !in_array($post->post_author, $authors) ) |
117 | $authors[] = $post->post_author; |
118 | if ( $authors && count( $authors ) > 1 ) |
119 | add_meta_box('authordiv', __('Post Author'), 'post_author_meta_box', 'post', 'normal', 'core'); |
120 |
|
121 | if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) |
122 | add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', 'normal', 'core'); |
123 |
|
124 | do_action('do_meta_boxes', 'post', 'normal', $post); |
125 | do_action('do_meta_boxes', 'post', 'advanced', $post); |
126 | do_action('do_meta_boxes', 'post', 'side', $post); |
127 |
|
128 | require_once('admin-header.php'); |
129 |
|
130 | ?> |
131 |
|
132 | <div class="wrap"> |
133 | <?php screen_icon(); ?> |
134 | <h2><?php echo esc_html( $title ); ?></h2> |
135 | <?php if ( $notice ) : ?> |