Automattic\WooCommerce\Internal\Admin

FeaturePlugin::includes()publicWC 1.0

Include WC Admin classes.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код FeaturePlugin::includes() WC 8.7.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 SellingOnlineCourses();
	new MagentoMigration();

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