Transitioned to using the transition_post_status hook rather than the hack