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 |
---|---|
452 | <form name="post" action="post.php" method="post" id="post" |
453 | <?php |
454 | /** |
455 | * Fires inside the post editor form tag. |
456 | * |
457 | * @since 3.0.0 |
458 | * |
459 | * @param WP_Post $post Post object. |
460 | */ |
461 | do_action( 'post_edit_form_tag', $post ); |
462 |
|
463 | $referer = wp_get_referer(); |
464 | ?> |
465 | > |
466 | <?php wp_nonce_field( $nonce_action ); ?> |
467 | <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID; ?>" /> |
468 | <input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ); ?>" /> |
469 | <input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ); ?>" /> |
470 | <input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" /> |