admin管理员组文章数量:1404927
What are the proper filter/hooks to modify the wp-login.php?action=logout confirmation page
When you logout of your site using yoursite/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:
What is the best way to edit this page?
What are the proper filter/hooks to modify the wp-login.php?action=logout confirmation page
When you logout of your site using yoursite/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/Function_Reference/wp_logout_url
What is the best way to edit this page?
Share Improve this question edited Jun 15, 2020 at 8:21 CommunityBot 1 asked Jan 13, 2017 at 11:17 Carl AlbertoCarl Alberto 1,0971 gold badge12 silver badges30 bronze badges2 Answers
Reset to default 2Its 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/Function_Reference/wp_loginout This might helps you.
You can except to go to that logout page. Only you need to change your logout link in your frontend.
<a href="<?php echo wp_logout_url()?>">logout</a>
this code, make the logout without confirmation window.
But also if you really need a confirmation, you can create a "new page" named "confirmation" now, in your frontend the logout can point to "/confirmation" you put there your nice styles, and the link using "wp_logout_url()" or you can make a nice js/bootstrap confirmation event.
I hope that was helpfull.
本文标签: customizationCustomizing the default logout page of WordPress
版权声明:本文标题:customization - Customizing the default logout page of WordPress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744864212a2629252.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论