Dear Robert,
Try with the following code:
add_filter( 'cred_redirect_after_delete_action', 'my_redirect_after_delete', 10, 2 ); function my_redirect_after_delete( $url, $post_id ) { if(get_post_type( $post_id ) == "listing"){ $url = get_permalink(2027); } return $url; }
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Regards,
Caridad