transition_post_status – action

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

Parameters

.
( 2.3.0 ) . .
( string ) $new_status New post status. . . .
( string ) $old_status Old post status. . . .
$post
( WP_Post ) Post object. . . .
API Letters: ,,

Implementers