WordPress at Your Fingertips
function is not described

WC_Install::maybe_update_db_version() private WC 3.2.0

See if we need to show or run database updates during install.

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

Hooks from the method
Return

null. Nothing.

Usage

$result = WC_Install::maybe_update_db_version();

Changelog

Since 3.2.0 Introduced.

Code of WC_Install::maybe_update_db_version() WC 5.7.1

private static function maybe_update_db_version() {
	if ( self::needs_db_update() ) {
		if ( apply_filters( 'woocommerce_enable_auto_update_db', false ) ) {
			self::update();
		} else {
			WC_Admin_Notices::add_notice( 'update', true );
		}
	} else {
		self::update_db_version();
	}
}