edit_post_page action-hookWP 5.1.0

Fires once an existing post has been updated.

This is one of the variants of the dynamic hook edit_post_(post_type)

Usage

add_action( 'edit_post_page', 'wp_kama_edit_post_page_action', 10, 2 );

/**
 * Function for `edit_post_page` action-hook.
 * 
 * @param int     $post_id Post ID.
 * @param WP_Post $post    Post object.
 *
 * @return void
 */
function wp_kama_edit_post_page_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_page
wp-includes/post.php 4837
do_action( "edit_post_{$post->post_type}", $post_id, $post );

Where the hook is used in WordPress

Usage not found.