edit_post WordPress Action Hook
The edit_post hook is called whenever a post is edited in WordPress. It allows you to perform custom actions when a post is edited, such as notifying an author that their post has been edited.
do_action( 'edit_post', int $post_ID , WP_Post $post ) #
Fires once an existing post has been updated.
Parameters
- $post_ID
(int)Post ID.
- $post
(WP_Post)Post object.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |