WC_Install::install()
Install WC.
Description Description
Source Source
File: includes/class-wc-install.php
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_enable_setup_wizard(); self::update_wc_version(); self::maybe_update_db_version(); self::maybe_enable_homescreen(); delete_transient( 'wc_installing' ); do_action( 'woocommerce_flush_rewrite_rules' ); do_action( 'woocommerce_installed' ); }