WordPress at Your Fingertips
function is not described

WC_Install::check_version() public WC 1.0

Check WooCommerce version and run the updater is required.

This check is done on all requests and runs if the versions do not match.

{} It's a method of the class: WC_Install{}

Hooks from the method

null. Nothing.


$result = WC_Install::check_version();

Code of WC_Install::check_version() WC 5.7.1

public static function check_version() {
	if ( ! Constants::is_defined( 'IFRAME_REQUEST' ) && version_compare( get_option( 'woocommerce_version' ), WC()->version, '<' ) ) {
		do_action( 'woocommerce_updated' );