Fires once an existing post has been updated.
Parameters
$post_idint- Post ID.
$postWP_Post- Post object.
Source
do_action( 'edit_post', $post_id, $post );
View all references View on Trac View on GitHub
Related
| 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 updates a post in the database. |
wp_update_comment_count_now()wp-includes/comment.php | Updates the comment count for the post. |
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |