woocommerce_order_cancelled_notice

woocommerce_order_cancelled_notice

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_order_cancelled_notice') is found 1 times:

  • /includes/class-wc-form-handler.php line 766
    				// Cancel the order + restore stock.
    				WC()->session->set( 'order_awaiting_payment', false );
    				$order->update_status( 'cancelled', __( 'Order cancelled by customer.', '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->get_id() );
    
    			} elseif ( $user_can_cancel && ! $order_can_cancel ) {
    				wc_add_notice( __( 'Your order can no longer be cancelled. Please contact us if you need assistance.', 'woocommerce' ), 'error' );
    			} else {