Automattic\WooCommerce\Blocks\Domain
Package::__construct()
Constructor
Method of the class: Package{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Package = new Package(); $Package->__construct( $version, $plugin_path, $deprecated );
- $version(string) (required)
- Version of the plugin.
- $plugin_path(string) (required)
- Path to the main plugin file.
- $deprecated(FeatureGating)
- Deprecated Feature gating class.
Default: null
Package::__construct() Package:: construct code WC 9.7.1
public function __construct( $version, $plugin_path, $deprecated = null ) { if ( null !== $deprecated ) { wc_deprecated_argument( 'FeatureGating', '9.6', 'FeatureGating class is deprecated, please use wp_get_environment_type() instead.' ); $this->feature_gating = new FeatureGating(); } $this->version = $version; $this->path = $plugin_path; }