diff --git a/includes/class-wc-form-handler.php b/includes/class-wc-form-handler.php old mode 100644 new mode 100755 index 4ca7449f8be..2af26804172 --- a/includes/class-wc-form-handler.php +++ b/includes/class-wc-form-handler.php @@ -515,7 +515,7 @@ class WC_Form_Handler { $order->cancel_order( __('Order cancelled by customer.', 'woocommerce' ) ); // Message - wc_add_notice( __( 'Your order was cancelled.', 'woocommerce' ) ); + wc_add_notice( apply_filters( 'woocommerce_order_cancelled_notice',__( 'Your order was cancelled.', 'woocommerce' ) ) , apply_filters( 'woocommerce_order_cancelled_notice_type', 'notice' ) ); do_action( 'woocommerce_cancelled_order', $order->id );