save_post_page 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_page', 'wp_kama_save_post_page_action', 10, 3 );

/**
 * Function for `save_post_page` 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_page_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_page
wp-includes/post.php 4662
do_action( "save_post_{$post->post_type}", $post_ID, $post, $update );

Where the hook is used in WordPress

Usage not found.