Описание
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
Скриншоты
Часто задаваемые вопросы
-
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’ );?>
Отзывы
Участники и разработчики
«Direct Logout» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
Участники«Direct Logout» переведён на 1 язык. Благодарим переводчиков за их работу.
Перевести «Direct Logout» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
None