WC_Helper_Updater::flush_updates_cache()public staticWC 1.0

Flushes cached update data.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WC_Helper_Updater::flush_updates_cache();

Код WC_Helper_Updater::flush_updates_cache() WC 8.7.0

public static function flush_updates_cache() {
	delete_transient( '_woocommerce_helper_updates' );
	delete_transient( '_woocommerce_helper_updates_count' );
	delete_site_transient( 'update_plugins' );
	delete_site_transient( 'update_themes' );
}