WC_Install::install() – Install WC.

You appear to be a bot. Output may be restricted

Description

Install WC.

Usage

WC_Install::install();

Parameters

Returns

void

Source

File name: woocommerce/includes/class-wc-install.php


Lines:

1 to 36 of 36
  public static function install() {
    if ( ! is_blog_installed() ) {
      return;
    }

    // Check if we are not already running this routine.
    if ( 'yes' === get_transient( 'wc_installing' ) ) {
      return;
    }

    // If we made it till here nothing is running yet, lets set the transient now.
    set_transient( 'wc_installing', 'yes', MINUTE_IN_SECONDS * 10 );
    wc_maybe_define_constant( 'WC_INSTALLING', true );

    WC()->wpdb_table_fix();
    self::remove_admin_notices();
    self::create_tables();
    self::verify_base_tables();
    self::create_options();
    self::create_roles();
    self::setup_environment();
    self::create_terms();
    self::create_cron_jobs();
    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();

    delete_transient( 'wc_installing' );

    do_action( 'woocommerce_flush_rewrite_rules' );
    do_action( 'woocommerce_installed' );
  }
 

 View on GitHub View on Trac