Automattic\WooCommerce\Blocks\Shipping
ShippingController::flush_cache()
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() ShippingController::flush cache WC 9.2.3
public function flush_cache( $settings ) { \WC_Cache_Helper::get_transient_version( 'shipping', true ); return $settings; }