このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの 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

FAQ

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