Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Helper::_woo_core_update_available()
Whether WooCommerce has an update available.
Description Description
Return Return
(bool) True if a Woo core update is available.
Source Source
File: includes/admin/helper/class-wc-helper.php
private static function _woo_core_update_available() { $updates = get_site_transient( 'update_plugins' ); if ( empty( $updates->response ) ) { return false; } if ( empty( $updates->response['woocommerce/woocommerce.php'] ) ) { return false; } $data = $updates->response['woocommerce/woocommerce.php']; if ( version_compare( Constants::get_constant( 'WC_VERSION' ), $data->new_version, '>=' ) ) { return false; } return true; }