WC_Install::needs_db_update()
Is a DB update needed?
Description Description
Return Return
(boolean)
Source Source
File: includes/class-wc-install.php
public static function needs_db_update() { $current_db_version = get_option( 'woocommerce_db_version', null ); $updates = self::get_db_update_callbacks(); $update_versions = array_keys( $updates ); usort( $update_versions, 'version_compare' ); return ! is_null( $current_db_version ) && version_compare( $current_db_version, end( $update_versions ), '<' ); }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |