How to properly disable Wordpress sign out confirmation for users?

时间:2018-12-02 17:09:35

标签: php wordpress logout confirmation

I'm building a marketplace on Wordpress and trying to figure out how to disable Wordpress default logout confirmation screen after the user click on sign out.

The code I'm using to sign out is <a title="Sign out" href="<?php echo wp_logout_url('/') ?>">Sign out</a>

I tried almost every code I found on Google to add to my functions.php but none of them works. The confirmation page is still coming but the weird thing is it doesn't appear every time i try to sign out, it appears sometimes.

How can we solve this issue? There's no way to completely disable it?

1 个答案:

答案 0 :(得分:0)

我也在创建一个市场,但不是在wordpress上,而是在您来自哪里的核心php上?

我们可能会互相帮助