pre_post_update action-hookWP 2.5.0

Fires immediately before an existing post is updated in the database.

Usage

add_action( 'pre_post_update', 'wp_kama_pre_post_update_action', 10, 2 );

/**
 * Function for `pre_post_update` action-hook.
 * 
 * @param int   $post_ID Post ID.
 * @param array $data    Array of unslashed post data.
 *
 * @return void
 */
function wp_kama_pre_post_update_action( $post_ID, $data ){

	// action...
}
$post_ID(int)
Post ID.
$data(array)
Array of unslashed post data.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

wp_insert_post()
pre_post_update
wp-includes/post.php 4389
do_action( 'pre_post_update', $post_ID, $data );

Where the hook is used in WordPress

Usage not found.