Direct Logout
This plugin let your users logout from woocommerce without Confirmation.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 1820 days ago • 2 reviews
Is Direct Logout abandoned?
Possibly abandoned (last update 1820 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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
Installation
Frequently Asked Questions
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’ );
?>
Review feed
Changelog
None
