這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Direct Logout

描述

This plugin remove the “Are you sure you want to log out?” confirmation page once an user logout.

After the logout the plugin lets you choose from redirect:

  • Same page
  • Login page
  • Homepage
  • Custom page

螢幕截圖

  • Control Panel

常見問題

I don’t want to install a plugin for this simple function, do you have a hook? 

Of course, you can put the following code inside your function.php page, it will redirect ot the login page
query_vars[‘customer-logout’] ) ) {

wp_redirect( str_replace( ‘&’, ‘&’, wp_logout_url( wc_get_page_permalink( ‘myaccount’ ) ) ) );
header(“Refresh:0”);
exit;

}

}
add_action( ‘template_redirect’, ‘finalmarco_logout’ );

?>

評價

閱讀全部2個評價

貢獻者及開發者

“Direct Logout” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Direct Logout 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Direct Logout 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

None