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.
Method of the class: WC_Helper{}
No Hooks.
Returns
void. Nothing (null).
Usage
$result = WC_Helper::flush_local_woo_products_cache(): void;
Changelog
| Since 11.2.0 | Introduced. |
WC_Helper::flush_local_woo_products_cache() WC Helper::flush local woo products cache code WC 11.2.1
public static function flush_local_woo_products_cache(): void {
self::$local_woo_plugins_cache = null;
self::$local_woo_themes_cache = null;
}