Automattic\WooCommerce\Internal\Admin

FeaturePlugin::includes()publicWC 1.0

Include WC Admin classes.

Метод класса: FeaturePlugin{}

No Hooks.

Return

null. Nothing.

Usage

$FeaturePlugin = new FeaturePlugin();
$FeaturePlugin->includes();

Code of FeaturePlugin::includes() WC 7.1.0

public function includes() {
	// Initialize Database updates, option migrations, and Notes.
	Events::instance()->init();
	Notes::init();

	// Initialize Plugins Installer.
	PluginsInstaller::init();
	PluginsHelper::init();

	// Initialize API.
	API\Init::instance();

	if ( Features::is_enabled( 'onboarding' ) ) {
		Onboarding::init();
	}

	if ( Features::is_enabled( 'analytics' ) ) {
		// Initialize Reports syncing.
		ReportsSync::init();
		CategoryLookup::instance()->init();

		// Initialize Reports exporter.
		ReportExporter::init();
	}

	// Admin note providers.
	// @todo These should be bundled in the features/ folder, but loading them from there currently has a load order issue.
	new WooSubscriptionsNotes();
	new OrderMilestones();
	new TrackingOptIn();
	new WooCommercePayments();
	new InstallJPAndWCSPlugins();
	new TestCheckout();
	new SellingOnlineCourses();
	new WelcomeToWooCommerceForStoreUsers();
	new ManageStoreActivityFromHomeScreen();
	new MagentoMigration();

	// Initialize MerchantEmailNotifications.
	MerchantEmailNotifications::init();
}