WC_Order::untrash()publicWC 1.0

Attempts to restore the specified order back to its original status (after having been trashed).

Метод класса: WC_Order{}

Хуков нет.

Возвращает

true|false. If the operation was successful.

Использование

$WC_Order = new WC_Order();
$WC_Order->untrash(): bool;

Код WC_Order::untrash() WC 8.1.1

public function untrash(): bool {
	return (bool) $this->data_store->untrash_order( $this );
}