LLMS_Install::db_updates()
Queue all required db updates into the bg update queue
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.install.php
public static function db_updates() { $current_db_version = get_option( 'lifterlms_db_version' ); $queued = false; foreach ( self::$db_updates as $version => $callbacks ) { if ( version_compare( $current_db_version, $version, '<' ) ) { foreach ( $callbacks as $callback ) { self::$background_updater->log( sprintf( 'Queuing %s - %s', $version, $callback ) ); self::$background_updater->push_to_queue( $callback ); $queued = true; } } } if ( $queued ) { add_action( 'shutdown', array( __CLASS__, 'dispatch_db_updates' ) ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |