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 |
---|---|
86 | $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM |
87 | if ( $post->post_author && !in_array($post->post_author, $authors) ) |
88 | $authors[] = $post->post_author; |
89 | if ( $authors && count( $authors ) > 1 ) |
90 | add_meta_box('pageauthordiv', __('Page Author'), 'post_author_meta_box', 'page', 'normal', 'core'); |
91 |
|
92 | if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) |
93 | add_meta_box('revisionsdiv', __('Page Revisions'), 'post_revisions_meta_box', 'page', 'normal', 'core'); |
94 |
|
95 | do_action('do_meta_boxes', 'page', 'normal', $post); |
96 | do_action('do_meta_boxes', 'page', 'advanced', $post); |
97 | do_action('do_meta_boxes', 'page', 'side', $post); |
98 |
|
99 | require_once('admin-header.php'); |
100 | ?> |
101 |
|
102 | <div class="wrap"> |
103 | <?php screen_icon(); ?> |
104 | <h2><?php echo esc_html( $title ); ?></h2> |
105 |
|
106 | <form name="post" action="page.php" method="post" id="post"> |