The following solution worked for me in order to skip the WordPress logout page confirmation. The WordPress logout page shows when we redirect the user…
My usecase was I was having a link domain.com/tutors/tutor-name. The tutors is cpt and the tutor-name is the slug. Desired output was domain.com/tutor-name. The following…