transition_post_status

transition_post_status

Hook Type: action
See hook in action
See hook in
Displaying hooks found in version: wordpress-5.2.4

do_action('transition_post_status') is found 1 times:

  • /wp-includes/post.php line 4446
    	 * @param string  $new_status New post status.
    	 * @param string  $old_status Old post status.
    	 * @param WP_Post $post       Post object.
    	 */
    	do_action( 'transition_post_status', $new_status, $old_status, $post );
    
    	/**
    	 * Fires when a post is transitioned from one status to another.
    	 *
    	 * The dynamic portions of the hook name, `$new_status` and `$old status`,
    	 * refer to the old and new post statuses, respectively.
    

See this hook used in plugins: