What are the proper filter/hooks to modify the wp-login.php?action=logout confirmation page
When 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 Answers
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.