WC_Install::install_core()
Core function that performs the WooCommerce install.
Method of the class: WC_Install{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Install::install_core();
WC_Install::install_core() WC Install::install core code WC 9.3.3
private static function install_core() { if ( self::is_new_install() && ! get_option( self::NEWLY_INSTALLED_OPTION, false ) ) { update_option( self::NEWLY_INSTALLED_OPTION, 'yes' ); } WC()->wpdb_table_fix(); self::remove_admin_notices(); self::create_tables(); self::verify_base_tables(); self::create_options(); self::migrate_options(); self::create_roles(); self::setup_environment(); self::create_terms(); self::create_cron_jobs(); self::delete_obsolete_notes(); self::create_files(); self::maybe_create_pages(); self::maybe_set_activation_transients(); self::set_paypal_standard_load_eligibility(); self::update_wc_version(); self::maybe_update_db_version(); self::maybe_set_store_id(); self::maybe_install_legacy_api_plugin(); self::maybe_activate_legacy_api_enabled_option(); }