do_action( "{$new_status}_{$post->post_type}", ... )
Fires when a post is transitioned from one status to another.
$post_id
int
$post
WP_Post
$old_status
string
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed