Merge pull request #5206 from ChromeOrange/master
Order cancelled tweaks
This commit is contained in:
commit
2fbb257926
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue