LLMS_Install::wizard_redirect()
Redirects users to the setup wizard
Contents
Return Return
(void)
Source Source
File: includes/class.llms.install.php
$upgrader = new LLMS_DB_Upgrader( get_option( 'lifterlms_db_version' ) );
$upgrader->enqueue_updates();
llms_redirect_and_exit( remove_query_arg( array( 'llms-db-update' ) ) );
}
/**
* Update the LifterLMS DB record to the latest version
*
* @since 3.0.0
* @since 3.4.3 Unknown.
*
* @param string $version Version number.
* @return void
*/
public static function update_db_version( $version = null ) {
delete_option( 'lifterlms_db_version' );
add_option( 'lifterlms_db_version', is_null( $version ) ? llms()->version : $version );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.2.0 | Use strict array comparison and wp_safe_redirect() in favor of wp_redirect(). |
| 3.0.0 | Unknown. |
| 1.0.0 | Introduced. |