Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_edit_form_tag

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
378 <?php
379 /**
380  * Fires inside the post editor <form> tag.
381  *
382  * @since 3.0.0
383  *
384  * @param WP_Post $post Post object.
385  */
386 ?>
387 <form name="post" action="post.php" method="post" id="post"<?php do_action( 'post_edit_form_tag', $post ); ?>>
388 <?php wp_nonce_field($nonce_action); ?>
389 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
390 <input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" />
391 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ) ?>" />
392 <input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
393 <input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post_type ) ?>" />
394 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status) ?>" />
395 <input type="hidden" id="referredby" name="referredby" value="<?php echo esc_url(wp_get_referer()); ?>" />
396 <?php if ( ! empty( $active_post_lock ) ) { ?>