Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Install::update()
Push all needed DB updates to the queue for processing.
Description Description
Source Source
File: includes/class-wc-install.php
private static function update() { $current_db_version = get_option( 'woocommerce_db_version' ); $loop = 0; foreach ( self::get_db_update_callbacks() as $version => $update_callbacks ) { if ( version_compare( $current_db_version, $version, '<' ) ) { foreach ( $update_callbacks as $update_callback ) { WC()->queue()->schedule_single( time() + $loop, 'woocommerce_run_update_callback', array( 'update_callback' => $update_callback, ), 'woocommerce-db-updates' ); $loop++; } } } }