edit_post_{$post->post_type} WordPress Action Hook
This hook allows you to perform custom actions when a post of the specified type is edited. You can use this to update custom fields, post meta, or anything else you need to do when a post is edited.
do_action( "edit_post_{$post->post_type}", int $post_ID , WP_Post $post ) #
Fires once an existing post has been updated.
Description
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
Parameters
- $post_ID
(int)Post ID.
- $post
(WP_Post)Post object.
Source
File: wp-includes/post.php
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |