save_post_post action-hookWP 3.7.0

Fires once a post has been saved.

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

Usage

add_action( 'save_post_post', 'wp_kama_save_post_action', 10, 3 );

/**
 * Function for `save_post_post` action-hook.
 * 
 * @param int     $post_id Post ID.
 * @param WP_Post $post    Post object.
 * @param bool    $update  Whether this is an existing post being updated.
 *
 * @return void
 */
function wp_kama_save_post_action( $post_id, $post, $update ){

	// action...
}
$post_id(int)
Post ID.
$post(WP_Post)
Post object.
$update(true|false)
Whether this is an existing post being updated.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

wp_insert_post()
save_post_post
wp-includes/post.php 4880
do_action( "save_post_{$post->post_type}", $post_id, $post, $update );

Where the hook is used in WordPress

Usage not found.