Automattic\WooCommerce\Internal\Caches

TaxRateVersionStringInvalidator::invalidate_tax_rates_listprivateWC 1.0

Invalidate the tax rates list version string.

Called when tax rates are added, updated, or deleted, as these operations affect collection/list endpoints.

Method of the class: TaxRateVersionStringInvalidator{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->invalidate_tax_rates_list(): void;

TaxRateVersionStringInvalidator::invalidate_tax_rates_list() code WC 10.8.1

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