On this page
do_action( 'edit_post', int $post_ID, WP_Post $post )
Fires once an existing post has been updated.
Parameters
$post_IDint-
Post ID.
$postWP_Post-
Post object.
Source
File: wp-includes/post.php. View all references
do_action( 'edit_post', $post_ID, $post );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Manager::trash_changeset_post() wp-includes/class-wp-customize-manager.php | Trashes or deletes a changeset post. |
| wp_publish_post() wp-includes/post.php | Publishes a post by transitioning the post status. |
| wp_insert_post() wp-includes/post.php | Inserts or update a post. |
| wp_update_comment_count_now() wp-includes/comment.php | Updates the comment count for the post. |
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_post