WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

transition_post_status хук-событие . WP 2.3.0

Fires when a post is transitioned from one status to another.

Использование

add_action( 'transition_post_status', 'action_function_name_7653', 10, 3 );
function action_function_name_7653( $new_status, $old_status, $post ){
	// action...
}
$new_status(строка)
New post status.
$old_status(строка)
Old post status.
$post(WP_Post)
Post object.

Где вызывается хук

wp_transition_post_status()
transition_post_status
wp-includes/post.php 4446
do_action( 'transition_post_status', $new_status, $old_status, $post );

Где используется хук (в ядре WP)

wp-includes/default-filters.php 356
add_action( 'transition_post_status', '_transition_post_status', 5, 3 );
wp-includes/default-filters.php 357
add_action( 'transition_post_status', '_update_term_count_on_transition_post_status', 10, 3 );
wp-includes/default-filters.php 382
add_action( 'transition_post_status', '_wp_auto_add_pages_to_menu', 10, 3 );
wp-includes/default-filters.php 460
add_action( 'transition_post_status', '_wp_customize_publish_changeset', 10, 3 );
wp-includes/default-filters.php 463
add_action( 'transition_post_status', '_wp_keep_alive_customize_changeset_dependent_auto_drafts', 20, 3 );
wp-includes/default-filters.php 472
add_action( 'transition_post_status', '__clear_multi_author_cache' );
wp-includes/ms-default-filters.php 80
add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 );
wp-includes/ms-default-filters.php 81
add_action( 'transition_post_status', '_update_posts_count_on_transition_post_status', 10, 3 );