Automattic\WooCommerce\Internal\Caches

OrdersVersionStringInvalidator::handle_woocommerce_trash_order │ public │ WC 10.6.0

Handle the woocommerce_trash_order hook.

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

Хуков нет.

Возвращает

void. Ничего (null).

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

$OrdersVersionStringInvalidator = new OrdersVersionStringInvalidator();
$OrdersVersionStringInvalidator->handle_woocommerce_trash_order( $order_id ): void;
$order_id(int) (обязательный)
The order ID.

Список изменений

С версии 10.6.0 Введена.

Код OrdersVersionStringInvalidator::handle_woocommerce_trash_order() WC 11.2.2

public function handle_woocommerce_trash_order( $order_id ): void {
	$this->invalidate( (int) $order_id );
	$this->invalidate_orders_list();
}