Title: cancelation button for orders
Last modified: May 4, 2020

---

# cancelation button for orders

 *  Resolved [sdgfasd](https://wordpress.org/support/users/sdgfasd/)
 * (@sdgfasd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/cancelation-button-for-orders/)
 * Hi there,
    How can I place a cancelation button for orders, so that the customer
   can cancel the order just he/she has created. thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/cancelation-button-for-orders/#post-12792139)
 * Hi,
 * Add this snippet to your for the purpose-
 *     ```
       add_filter( 'woocommerce_valid_order_statuses_for_cancel', 'custom_valid_order_statuses_for_cancel', 10, 1 );
       function custom_valid_order_statuses_for_cancel( $statuses ){
         return array_merge( $statuses, array( 'processing', 'on-hold' ) );
       }
       ```
   
 * Add custom code(s) to your child theme’s functions.php
    In case you do not have
   child theme then add those using this plugin – https://wordpress.org/plugins/
   code-snippets/
 * Thank You

Viewing 1 replies (of 1 total)

The topic ‘cancelation button for orders’ is closed to new replies.

 * ![](https://ps.w.org/wc-multivendor-marketplace/assets/icon-256x256.gif?rev=2611991)
 * [WCFM Marketplace - Multivendor Marketplace for WooCommerce](https://wordpress.org/plugins/wc-multivendor-marketplace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-multivendor-marketplace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-multivendor-marketplace/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-multivendor-marketplace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-multivendor-marketplace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/cancelation-button-for-orders/#post-12792139)
 * Status: resolved