Create/Edit posts and auto-redirect back to listing page June 7, 2022 by Tarik Billa global $post or $post_type to check for your CPT; Post Status Transitions hooks to redirect on specific changes to the post; wp_redirect().