WC_Install::update_db_version()
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() 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 ); }