We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfad6f9 commit 57bc1f0Copy full SHA for 57bc1f0
Users/logout-redirect.php
@@ -0,0 +1,7 @@
1
+<?php
2
+
3
+add_action('wp_logout', 'my_redirect_after_logout');
4
+function my_redirect_after_logout() {
5
+ wp_redirect(esc_url(home_url('/')));
6
+ exit;
7
+}
0 commit comments