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.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More