Automattic\WooCommerce\Internal\Logging

RemoteLogger::is_latest_woocommerce_version()privateWC 1.0

Check if the current WooCommerce version is the latest.

Method of the class: RemoteLogger{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_latest_woocommerce_version();

RemoteLogger::is_latest_woocommerce_version() code WC 9.3.3

private function is_latest_woocommerce_version() {
	$latest_wc_version = $this->fetch_latest_woocommerce_version();

	if ( is_null( $latest_wc_version ) ) {
		return false;
	}

	return version_compare( WC()->version, $latest_wc_version, '>=' );
}