Automattic\WooCommerce\Internal\Admin\Orders
EditLock::is_locked
Checks whether the order is being edited by any user.
Method of the class: EditLock{}
No Hooks.
Returns
true|false. TRUE if order is locked and currently being edited by a user. FALSE otherwise.
Usage
$EditLock = new EditLock(); $EditLock->is_locked( $order ) : bool;
- $order(WC_Order) (required)
- Order to check.
EditLock::is_locked() EditLock::is locked code WC 10.6.2
public function is_locked( \WC_Order $order ) : bool {
return (bool) $this->get_lock( $order );
}