Automattic\WooCommerce\Internal\Admin
Install::install()
Install WC Admin.
{} Это метод класса: Install{}
Хуки из метода
Возвращает
null
. Ничего.
Использование
$result = Install::install();
Код Install::install() Install::install WC 6.4.1
public static function install() { if ( ! is_blog_installed() ) { return; } // Check if we are not already running this routine. if ( self::is_installing() ) { return; } // If we made it till here nothing is running yet, lets set the transient now. set_transient( 'wc_admin_installing', 'yes', MINUTE_IN_SECONDS * 10 ); self::migrate_options(); self::create_tables(); self::create_events(); self::delete_obsolete_notes(); self::maybe_update_db_version(); delete_transient( 'wc_admin_installing' ); // Use add_option() here to avoid overwriting this value with each // plugin version update. We base plugin age off of this value. add_option( 'woocommerce_admin_install_timestamp', time() ); do_action( 'woocommerce_admin_installed' ); }