WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Install::install() public WC 1.0

Install WC.

{} Это метод класса: WC_Install{}

Возвращает

null. Ничего.

Использование

$result = WC_Install::install();

Код WC_Install::install() WC 5.6.0

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' );
}