Automattic\WooCommerce\Internal\Caches

OrdersVersionStringInvalidator::invalidate_orders_list │ private │ WC 1.0

Invalidate the orders list version string.

This should be called when orders are created, deleted, change status, or change customer, as these operations affect collection/list endpoints.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->invalidate_orders_list(): void;

Код OrdersVersionStringInvalidator::invalidate_orders_list() WC 11.2.2

private function invalidate_orders_list(): void {
	wc_get_container()->get( VersionStringGenerator::class )->delete_version( 'list_orders' );
}