WordPress at Your Fingertips
function is not described

WC_Install::update_db_version() public WC 1.0

Update DB version to current.

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

No Hooks.


null. Nothing.


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

Code of WC_Install::update_db_version() WC 5.6.0

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