Automattic\WooCommerce\Blocks\Shipping

ShippingController::flush_cache()publicWC 1.0

Everytime we save or update local pickup settings, we flush the shipping transient group.

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

Хуков нет.

Возвращает

Массив. $settings The setting array we're saving.

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

$ShippingController = new ShippingController();
$ShippingController->flush_cache( $settings );
$settings(массив) (обязательный)
The setting array we're saving.

Код ShippingController::flush_cache() WC 8.7.0

public function flush_cache( $settings ) {
	\WC_Cache_Helper::get_transient_version( 'shipping', true );
	return $settings;
}