[ Web Proxy ]
URL:
Viewing: https://developer.wordpress.org/reference/hooks/edit_post/ [Back]  [Original]

edit_post Hook | Developer.WordPress.org Skip to content
WordPress.org

do_action( ‘edit_post’, int $post_id, WP_Post $post )

In this article

Table of Contents

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 );
Used byDescription
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

VersionDescription
1.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.


Web Proxy Viewer  |  New URL  |  Original Page