{"id":250903,"date":"2025-09-04T04:46:27","date_gmt":"2025-09-04T04:46:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/clear-cart-on-logout-for-woocommerce\/"},"modified":"2026-01-03T05:52:59","modified_gmt":"2026-01-03T05:52:59","slug":"clear-cart-on-logout-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/es-co.wordpress.org\/plugins\/clear-cart-on-logout-for-woocommerce\/","author":20921488,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"6.9.4","requires":"5.6","requires_php":"7.2","requires_plugins":null,"header_name":"Clear Cart on Logout for WooCommerce","header_author":"Samiur6688","header_description":"Automatically clears the WooCommerce cart when a logged-in user logs out of WordPress.","assets_banners_color":"","last_updated":"2026-01-03 05:52:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":353,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"samiur6688","date":"2026-01-03 05:52:59"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3387957,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3047,66044,4233,14950,286],"plugin_category":[38,45],"plugin_contributors":[240585],"plugin_business_model":[],"class_list":["post-250903","plugin","type-plugin","status-publish","hentry","plugin_tags-cart","plugin_tags-clear-cart","plugin_tags-logout","plugin_tags-session","plugin_tags-woocommerce","plugin_category-authentication","plugin_category-ecommerce","plugin_contributors-samiur6688","plugin_committers-samiur6688"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/clear-cart-on-logout-for-woocommerce\/assets\/icon-256x256.png?rev=3387957","icon_2x":"https:\/\/ps.w.org\/clear-cart-on-logout-for-woocommerce\/assets\/icon-256x256.png?rev=3387957","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Clear Cart on Logout for WooCommerce<\/strong> ensures that the shopping cart is emptied whenever a logged-in user logs out of WordPress.<\/p>\n\n<p>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.<\/p>\n\n<p><strong>Features:<\/strong>\n- Clears WooCommerce cart on user logout.\n- Works for all logged-in users (customers, admins, shop managers, etc.).\n- Removes both session cart and persistent cart saved in user meta.\n- Lightweight and easy to use \u2014 no settings required.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/clear-cart-on-logout-for-woocommerce<\/code> directory, or install the plugin through the WordPress Plugins screen.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>That\u2019s it! The WooCommerce cart will now be cleared whenever a logged-in user logs out.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20affect%20guest%20users%3F'><h3>Does this affect guest users?<\/h3><\/dt>\n<dd><p>No, the plugin only applies to logged-in users.<\/p><\/dd>\n<dt id='will%20this%20delete%20orders%20or%20products%3F'><h3>Will this delete orders or products?<\/h3><\/dt>\n<dd><p>No, it only clears the shopping cart items. Orders and products remain unaffected.<\/p><\/dd>\n<dt id='does%20it%20work%20for%20all%20user%20roles%3F'><h3>Does it work for all user roles?<\/h3><\/dt>\n<dd><p>Yes, by default it works for all logged-in users.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Automatically clears the WooCommerce cart when a user logs out of WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/250903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=250903"}],"author":[{"embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/samiur6688"}],"wp:attachment":[{"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=250903"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=250903"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=250903"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=250903"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=250903"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=250903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}