post_edit_form_tag
Action HookDescription
Fires inside the post editor form tag.Hook Information
File Location |
wp-admin/edit-form-advanced.php
View on GitHub
|
Hook Type | Action |
Line Number | 482 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
Post object. |
Usage Examples
Basic Usage
<?php
// Hook into post_edit_form_tag
add_action('post_edit_form_tag', 'my_custom_function', 10, 1);
function my_custom_function($post) {
// Your custom code here
}
Source Code Context
wp-admin/edit-form-advanced.php:482
- How this hook is used in WordPress core
<?php
477 *
478 * @since 3.0.0
479 *
480 * @param WP_Post $post Post object.
481 */
482 do_action( 'post_edit_form_tag', $post );
483
484 $referer = wp_get_referer();
485 ?>
486 >
487 <?php wp_nonce_field( $nonce_action ); ?>
PHP Documentation
<?php
/**
* Fires inside the post editor form tag.
*
* @since 3.0.0
*
* @param WP_Post $post Post object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/edit-form-advanced.php
Related Hooks
Related hooks will be displayed here in future updates.