Transition Post status not working
You have to called this function in your header.php (your wp theme) : <?php wp_head(); ?> And this one into your Footer.php : <?php wp_footer(); ?> Because you are adding action to your WordPress, so you have to call that function in your theme.