Automattic\WooCommerce\Internal\Admin
FeaturePlugin::includes()
Include WC Admin classes.
Метод класса: FeaturePlugin{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$FeaturePlugin = new FeaturePlugin(); $FeaturePlugin->includes();
Код FeaturePlugin::includes() FeaturePlugin::includes WC 8.1.1
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 MagentoMigration(); // Initialize MerchantEmailNotifications. MerchantEmailNotifications::init(); }