edit_form_top
Fires at the beginning of the edit form.
At this point, the required hidden fields and nonces have already been output.
Usage
add_action( 'edit_form_top', 'wp_kama_edit_form_top_action' ); /** * Function for `edit_form_top` action-hook. * * @param WP_Post $post Post object. * * @return void */ function wp_kama_edit_form_top_action( $post ){ // action... }
- $post(WP_Post)
- Post object.
Changelog
Since 3.7.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-form-advanced.php
edit_form_top
wp-admin/edit-form-advanced.php 526
do_action( 'edit_form_top', $post );