Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
Products::delete_product_count_cache()
Delete the product count transient used in has_products() method to refresh the cache.
Method of the class: Products{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = Products::delete_product_count_cache();
Products::delete_product_count_cache() Products::delete product count cache code WC 9.7.1
public static function delete_product_count_cache() { delete_transient( self::PRODUCT_COUNT_TRANSIENT_NAME ); }