Automattic\WooCommerce\Internal\Caches

OrdersVersionStringInvalidator::invalidate_refunds_list │ private │ WC 1.0

Invalidate the refunds list version string.

This should be called when refunds are created or deleted, as these operations affect the /refunds collection endpoint.

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

Хуков нет.

Возвращает

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

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

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

Код OrdersVersionStringInvalidator::invalidate_refunds_list() WC 11.2.2

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