WC_Install::update_db_version()public staticWC 1.0

Update DB version to current.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::update_db_version( $version );
$version(string|null)
New WooCommerce DB version or null.
Default: null

WC_Install::update_db_version() code WC 9.4.2

public static function update_db_version( $version = null ) {
	update_option( 'woocommerce_db_version', is_null( $version ) ? WC()->version : $version );
}