Merge pull request #5206 from ChromeOrange/master

Order cancelled tweaks
This commit is contained in:
Mike Jolley 2014-03-26 10:50:31 +00:00
commit 2fbb257926
1 changed files with 1 additions and 1 deletions

2
includes/class-wc-form-handler.php Normal file → Executable file
View File

@ -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 );