Automattic\WooCommerce\Internal\Admin\Orders
EditLock::is_locked()
Checks whether the order is being edited by any user.
Метод класса: EditLock{}
Хуков нет.
Возвращает
true|false
. TRUE if order is locked and currently being edited by a user. FALSE otherwise.
Использование
$EditLock = new EditLock(); $EditLock->is_locked( $order ) : bool;
- $order(\WC_Order) (обязательный)
- Order to check.
Код EditLock::is_locked() EditLock::is locked WC 9.3.3
public function is_locked( \WC_Order $order ) : bool { return (bool) $this->get_lock( $order ); }