WC_Order::is_editable()
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() 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 ); }