WC_Order::is_editable()publicWC 1.0

Checks if an order can be edited, specifically for use on the Edit Order screen.

Method of the class: WC_Order{}

Hooks from the method

Return

true|false.

Usage

$WC_Order = new WC_Order();
$WC_Order->is_editable();

WC_Order::is_editable() code WC 8.7.0

public function is_editable() {
	return apply_filters( 'wc_order_is_editable', in_array( $this->get_status(), array( 'pending', 'on-hold', 'auto-draft' ), true ), $this );
}