Clear Cart on Logout for WooCommerce

外掛說明

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.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/clear-cart-on-logout-for-woocommerce directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. That’s it! The WooCommerce cart will now be cleared whenever a logged-in user logs out.

常見問題集

Does this affect guest users?

No, the plugin only applies to logged-in users.

Will this delete orders or products?

No, it only clears the shopping cart items. Orders and products remain unaffected.

Does it work for all user roles?

Yes, by default it works for all logged-in users.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Clear Cart on Logout for WooCommerce〉的開發相關工作。

參與者

變更記錄

1.0

  • Initial release.

1.0.1

  • Improved WooCommerce dependency handling.