do_action( "edit_post_{$post->post_type}", int $post_ID, WP_Post $post )

Fires once an existing post has been updated.


Description

The dynamic portion of the hook name, $post->post_type, refers to the post type slug.

Possible hook names include:

  • edit_post_post
  • edit_post_page

Top ↑

Parameters

$post_ID int
Post ID.
$post WP_Post
Post object.

Top ↑

Source

File: wp-includes/post.php. View all references

do_action( "edit_post_{$post->post_type}", $post_ID, $post );


Top ↑

Changelog

Changelog
Version Description
5.1.0 Introduced.

Top ↑

User Contributed Notes

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