do_action( "{$new_status}_{$post->post_type}", ... )

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

Parameters:
  • $post_id int
  • $post WP_Post
  • $old_status string