2

What are the proper filter/hooks to modify the wp-login.php?action=logout confirmation page

enter image description hereWhen you logout of your site using yoursite.com/wp-login.php?action=logout , You will go to a standard page WordPress logout page that has the following text:

You are attempting to log out of "Your Site"

Do you really want to log out?

I do not see any hooks/filters to modify it, I have checked from here: https://codex.wordpress.org/Function_Reference/wp_logout_url

What is the best way to edit this page?

2

Its seems we don't have any hook to modify that page. But you can use alternative way and redirect user to a desire template and modify that template according to your needs.

 <?php wp_loginout( $redirect, $echo ); ?>  

https://codex.wordpress.org/Function_Reference/wp_loginout This might helps you.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.