0

I am trying to upgrade one plugin. Can someone help me with creating a seamless logout procedure from wordpress? I want a logged in user to click on a link/button in a widget in sidebar. This link called Log out. Further Ajax request is sent and user gets logged out. The main thing it should be done on front page without redirects and refreshes.Only the widget is reloaded with initial fields for login and password with submit button

I saw some examples with wp_logout_url( home_url() ); and it is redirecting to admin login. It is not what is needed. It would be nice to have seamless logout on front end

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.