Clear Cart on Logout for WooCommerce
v1.0.1samiur6688 · 2025年9月4日 上架
Automatically clears the WooCommerce cart when a user logs out of WordPress.
- 正在使用
- 20+
- 评分
- 暂无
- 累计下载
- 855
- 最近更新
- 2026年8月25日
需要 WordPress 5.6+已测试到 7.1.5PHP 7.4+
贡献者
Clear Cart on Logout for WooCommerce ensures that the shopping cart is emptied whenever a logged-in user logs out of WordPress.
This helps prevent old items from remaining in the cart when the same user logs in again later, avoiding confusion and ensuring a clean shopping experience.
Features:
– Clears WooCommerce cart on user logout.
– Works for all logged-in users (customers, admins, shop managers, etc.).
– Removes both session cart and persistent cart saved in user meta.
– Lightweight and easy to use — no settings required.