Blog

if($post->post_status == 'draft') { wp_redirect( home_url() . "/", 301 ); }