edit_post_(post_type) action-hookWP 5.1.0

Fires once an existing post has been updated.

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

Possible hook names include:

Usage

add_action( 'edit_post_(post_type)', 'wp_kama_edit_post_type_action', 10, 2 );

/**
 * Function for `edit_post_(post_type)` action-hook.
 * 
 * @param int     $post_ID Post ID.
 * @param WP_Post $post    Post object.
 *
 * @return void
 */
function wp_kama_edit_post_type_action( $post_ID, $post ){

	// action...
}
$post_ID(int)
Post ID.
$post(WP_Post)
Post object.

Changelog

Since 5.1.0 Introduced.

Where the hook is called

wp_insert_post()
edit_post_(post_type)
wp_publish_post()
edit_post_(post_type)
wp_update_comment_count_now()
edit_post_(post_type)
WP_Customize_Manager::trash_changeset_post()
edit_post_(post_type)
wp-includes/post.php 4619
do_action( "edit_post_{$post->post_type}", $post_ID, $post );
wp-includes/post.php 4838
do_action( "edit_post_{$post->post_type}", $post->ID, $post );
wp-includes/comment.php 2702
do_action( "edit_post_{$post->post_type}", $post_id, $post );
wp-includes/class-wp-customize-manager.php 3098
do_action( "edit_post_{$post->post_type}", $post->ID, $post );

Where the hook is used in WordPress

Usage not found.