WC_Install::check_version()
Check WooCommerce version and run the updater is required.
Description Description
This check is done on all requests and runs if the versions do not match.
Source Source
File: includes/class-wc-install.php
public static function check_version() {
if ( ! Constants::is_defined( 'IFRAME_REQUEST' ) && version_compare( get_option( 'woocommerce_version' ), WC()->version, '<' ) ) {
self::install();
do_action( 'woocommerce_updated' );
}
}