WC_Helper::flush_local_woo_products_cache
Drop the per-request caches of get_local_woo_plugins() and get_local_woo_themes(), so the next call rescans the installed products.
Метод класса: WC_Helper{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = WC_Helper::flush_local_woo_products_cache(): void;
Список изменений
| С версии 11.2.0 | Введена. |
Код WC_Helper::flush_local_woo_products_cache() WC Helper::flush local woo products cache WC 11.3.0
public static function flush_local_woo_products_cache(): void {
self::$local_woo_plugins_cache = null;
self::$local_woo_themes_cache = null;
}