{"id":76879,"date":"2017-10-30T08:43:16","date_gmt":"2017-10-30T08:43:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/woocommerce-cancel-abandonned-order\/"},"modified":"2025-07-15T07:09:19","modified_gmt":"2025-07-15T07:09:19","slug":"woo-cancel-abandoned-order","status":"publish","type":"plugin","link":"https:\/\/mk.wordpress.org\/plugins\/woo-cancel-abandoned-order\/","author":11431822,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.0","stable_tag":"2.1.0","tested":"6.8.5","requires":"4.0","requires_php":"7.0","requires_plugins":null,"header_name":"Cancel Abandoned Order","header_author":"RVOLA","header_description":"Cancel \"on hold\" orders after a certain number of days","assets_banners_color":"a46497","last_updated":"2025-07-15 07:09:19","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/rvola","header_plugin_uri":"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order","header_author_uri":"https:\/\/rvola.com","rating":4.8,"author_block_rating":0,"active_installs":1000,"downloads":29524,"num_ratings":16,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.3":{"tag":"1.1.3","author":"rvola","date":"2018-01-31 10:23:28"},"1.2.1":{"tag":"1.2.1","author":"rvola","date":"2018-02-25 08:44:09"},"1.3.2":{"tag":"1.3.2","author":"rvola","date":"2018-10-02 15:27:07"},"1.4.1":{"tag":"1.4.1","author":"rvola","date":"2018-10-22 13:29:32"},"1.5.1":{"tag":"1.5.1","author":"rvola","date":"2019-05-07 13:04:34"},"1.6.1":{"tag":"1.6.1","author":"rvola","date":"2019-10-23 12:15:05"},"1.7.2":{"tag":"1.7.2","author":"rvola","date":"2020-04-11 12:37:06"},"1.8.1":{"tag":"1.8.1","author":"rvola","date":"2021-02-10 10:06:00"},"1.9.0":{"tag":"1.9.0","author":"rvola","date":"2021-11-19 10:06:54"},"2.0.0":{"tag":"2.0.0","author":"rvola","date":"2025-07-22 07:15:17"},"2.1.0":{"tag":"2.1.0","author":"rvola","date":"2025-07-15 07:09:19"}},"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":0,"5":15},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3329004,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3329004,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3329004,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3329004,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.3","1.2.1","1.3.2","1.4.1","1.5.1","1.6.1","1.7.2","1.8.1","1.9.0","2.0.0","2.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[15962,569,244945,5349,286],"plugin_category":[45],"plugin_contributors":[79935],"plugin_business_model":[],"class_list":["post-76879","plugin","type-plugin","status-publish","hentry","plugin_tags-abandoned-cart","plugin_tags-automation","plugin_tags-cancel-orders","plugin_tags-stripe","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-rvola","plugin_committers-rvola"],"banners":{"banner":"https:\/\/ps.w.org\/woo-cancel-abandoned-order\/assets\/banner-772x250.png?rev=3329004","banner_2x":"https:\/\/ps.w.org\/woo-cancel-abandoned-order\/assets\/banner-1544x500.png?rev=3329004","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/woo-cancel-abandoned-order\/assets\/icon-128x128.png?rev=3329004","icon_2x":"https:\/\/ps.w.org\/woo-cancel-abandoned-order\/assets\/icon-256x256.png?rev=3329004","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>** Cancel Abandoned Order** allows you to add a small option that will take care of dealing with \"abandoned\" commands.<\/p>\n\n<p>If you have check or transfer type orders for example, you will be able to set a maximum number of days or by hours to receive the payment.<\/p>\n\n<p>Cancel Abandoned Order, will take care of checking this and change the status of the order to \"Cancel\" if you have not received payment on time.<\/p>\n\n<p><a href=\"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order\"><strong>GitHub<\/strong><\/a> | <a href=\"https:\/\/www.paypal.me\/rvola\"><strong>Donate<\/strong><\/a><\/p>\n\n<h3>Requirement<\/h3>\n\n<ul>\n<li>PHP minimal: <strong>7.0<\/strong><\/li>\n<li>WordPress minimal: <strong>4.0<\/strong><\/li>\n<li>WooCommerce minimal : <strong>2.2<\/strong><\/li>\n<\/ul>\n\n<h3>Hooks<\/h3>\n\n<p><em>Action<\/em><\/p>\n\n<ul>\n<li><strong>woo_cao_cancel_order<\/strong> ($order_id) : After cancel order.<\/li>\n<\/ul>\n\n<p><em>Filters<\/em><\/p>\n\n<ul>\n<li><strong>woo_cao_gateways<\/strong> : Adds a payment gateway for the control.<\/li>\n<li><strong>woo_cao_before_cancel_order<\/strong> : Before canceling the order, send the order_id and the WC_Order if you do not want to cancel this order. Expect an exact return of true.<\/li>\n<li><strong>woo_cao_message_cancel_order<\/strong> : Allows you to modify the note when canceling the order. Handy if you use the 'woo_cao_before_cancel_order' filter.<\/li>\n<li><strong>woo_cao_date_order<\/strong> ($old_date, $gateway, $mode) : Change the calculation date for pending orders.<\/li>\n<li><strong>woo_cao_default_hours<\/strong> : Default value of the number of hours for order processing.<\/li>\n<li><strong>woo_cao_default_days<\/strong> : Default value of the number of days for order processing.<\/li>\n<li><strong>woo_cao_statustocancel<\/strong> ($status) : Allows you to add or change which WooCommerce order status the plugin should cancel.<\/li>\n<\/ul>\n\n<h3>Wiki<\/h3>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order\/wiki\">A help section on the code is available here<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/woo-cancel-abandoned-order<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>By default you can control the orders on the payment gateways: Check and BACS. Go to the options of the payment pages on WooCommerce.<\/li>\n<\/ol>\n\n<p><em>To add another payment gateway, simply use the <strong>woo_cao_gateways<\/strong> filters, more information on the <a href=\"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order\/wiki\">Wiki<\/a><\/em><\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20plugin%20use%20action%20scheduler'><h3>Does this plugin use Action Scheduler<\/h3><\/dt>\n<dd><p>Yes we have started the migration to Action Scheduler (recurring action) since version 1.9.0<\/p><\/dd>\n<dt id='what%20does%20the%20plugin%20do%3F'><h3>What does the plugin do?<\/h3><\/dt>\n<dd><p>Depending on the options defined in the payment gateway options page, the system will cancel orders whose payments have not been received.<\/p><\/dd>\n<dt id='mode'><h3>Mode<\/h3><\/dt>\n<dd><p>You can cancel orders in hours or days.\nFor example, if I put the mode \"Hourly\", I can cancel orders pending after 2 hours.\nAnother example, in mode \"Daily\", I can cancel orders that I have not received payment within 7 days.<\/p>\n\n<p>The execution of the cleaning is done like this:\nMode <strong>\"Hourly\"<\/strong>: every hour to 00 minutes\nMode <strong>\"Daily\"<\/strong>: every day at 0:00<\/p>\n\n<p><em>Since version 1.9.0, the action is no longer executed at XXh00. Refer to the \"Scheduled Actions\" tab of the \"Status\" page of WooCommerce.<\/em><\/p><\/dd>\n<dt id='i%20would%20like%20to%20cancel%20orders%20pending%20payment'><h3>I would like to cancel orders pending payment<\/h3><\/dt>\n<dd><p>Follow the <a href=\"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order\/wiki\/Change-the-status-type-for-the-cancellation-process\">tutorial here<\/a> to change the status of orders to cancel. By default the \"on-hold\" commands are canceled.<\/p><\/dd>\n<dt id='i%20want%20to%20make%20suggestions'><h3>I want to make suggestions<\/h3><\/dt>\n<dd><p>We\u2019re glad you want to help us improve <strong>Cancel Abandoned Order<\/strong>!\nThe GIT repository is available here <a href=\"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order\">https:\/\/github.com\/rvola\/woo-cancel-abandoned-order<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p><a href=\"https:\/\/github.com\/rvola\/woo-cancel-abandoned-order\/blob\/master\/CHANGELOG.md\">on GitHub<\/a>.<\/p>","raw_excerpt":"Cancel &quot;on hold&quot; orders after a certain number of days or by hours","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/76879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=76879"}],"author":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rvola"}],"wp:attachment":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=76879"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=76879"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=76879"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=76879"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=76879"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=76879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}