最后活跃于 1713289560

Malin 修订了这个 Gist 1713289560. 跳至此修订

1 file changed, 7 insertions

redirect-logout-to-home.php(file created)

@@ -0,0 +1,7 @@
1 + // redirect Wordpress logout to home
2 +
3 + add_action('wp_logout','auto_redirect_after_logout');
4 + function auto_redirect_after_logout(){
5 + wp_redirect(home_url());
6 + exit();
7 + }
更新 更早