FeaturePlugin
Feature plugin main class.
Description Description
Source Source
File: packages/woocommerce-admin/src/FeaturePlugin.php
Methods Methods
- __clone — Prevent cloning.
- __construct — Constructor
- __wakeup — Prevent unserializing.
- check_build — Returns true if build file exists.
- deactivate_self — Deactivates this plugin.
- define — Define constant if not already set.
- define_constants — Define Constants.
- get_dependency_errors — Get an array of dependency error messages.
- has_satisfied_dependencies — Returns true if all dependencies for the wc-admin plugin are loaded.
- hooks — Set up our admin hooks and plugin loader.
- includes — Include WC Admin classes.
- init — Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.
- instance — Get class instance.
- load_plugin_textdomain — Load Localisation files.
- on_activation — Install DB and create cron events when activated.
- on_deactivation — Remove WooCommerce Admin scheduled actions on deactivate.
- on_plugins_loaded — Setup plugin once all other plugins are loaded.
- register_devdocs_page — Adds a menu item for the wc-admin devdocs.
- render_build_notice — Notify users that the plugin needs to be built.
- render_dependencies_notice — Notify users of the plugin requirements.
- replace_supported_features — Overwrites the allowed features array using a local `feature-config.php` file.