WC_Order::untrash()publicWC 1.0

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

Method of the class: WC_Order{}

No Hooks.

Return

true|false. If the operation was successful.

Usage

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

WC_Order::untrash() code WC 9.6.1

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