Fires once an existing post has been updated.
The dynamic portion of the hook name, $post->post_type, refers to the post type slug.
Possible hook names include:
edit_post_postedit_post_page$post_idint
$postWP_Post
do_action( "edit_post_{$post->post_type}", $post_id, $post );
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_post_post-post_type