LLMS_Install::install()
Core install function
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.install.php
public static function install() { if ( ! is_blog_installed() ) { return; } do_action( 'lifterlms_before_install' ); LLMS_Site::set_lock_url(); self::create_tables(); self::create_options(); LLMS_Roles::install(); LLMS_Post_Types::register_post_types(); LLMS_Post_Types::register_taxonomies(); LLMS()->query->init_query_vars(); LLMS()->query->add_endpoints(); self::create_cron_jobs(); self::create_files(); self::create_difficulties(); self::create_visibilities(); $version = get_option( 'lifterlms_current_version', null ); $db_version = get_option( 'lifterlms_db_version', $version ); // trigger first time run redirect if ( ( is_null( $version ) || is_null( $db_version ) ) || 'no' === get_option( 'lifterlms_first_time_setup', 'no' ) ) { set_transient( '_llms_first_time_setup_redirect', 'yes', 30 ); } // show the update notice since there are db updates to run $versions = array_keys( self::$db_updates ); if ( ! is_null( $db_version ) && version_compare( $db_version, end( $versions ), '<' ) ) { self::update_notice(); } else { self::update_db_version(); } self::update_llms_version(); flush_rewrite_rules(); do_action( 'lifterlms_after_install' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: