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 |
---|---|
198 | <div class="wrap"> |
199 | <?php screen_icon(); ?> |
200 | <h2><?php echo esc_html( $title ); ?></h2> |
201 | <?php if ( $notice ) : ?> |
202 | <div id="notice" class="error"><p><?php echo $notice ?></p></div> |
203 | <?php endif; ?> |
204 | <?php if ( $message ) : ?> |
205 | <div id="message" class="updated"><p><?php echo $message; ?></p></div> |
206 | <?php endif; ?> |
207 | <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>> |
208 | <?php wp_nonce_field($nonce_action); ?> |
209 | <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> |
210 | <input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr($form_action) ?>" /> |
211 | <input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr($form_action) ?>" /> |
212 | <input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" /> |
213 | <input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post_type) ?>" /> |
214 | <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" /> |
215 | <input type="hidden" id="referredby" name="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" /> |
216 | <?php |