get_delete_post_link redirect
To redirect after the use of get_delete_post_link() it’s probably easiest to hook into the trashed_post action: Code: add_action( ‘trashed_post’, ‘wpse132196_redirect_after_trashing’, 10 ); function wpse132196_redirect_after_trashing() { wp_redirect( home_url(‘/your-custom-slug’) ); exit; } Or you could make it dependent on the according $_GET variable by hooking into the the action parse_request: Code: add_action( ‘parse_request’, ‘wpse132196_redirect_after_trashing_get’ ); function wpse132196_redirect_after_trashing_get() … Read more