Automattic\WooCommerce\Blocks\Domain
Package::__construct
Constructor
Метод класса: Package{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Package = new Package(); $Package->__construct( $version, $plugin_path, $deprecated );
- $version(строка) (обязательный)
- Version of the plugin.
- $plugin_path(строка) (обязательный)
- Path to the main plugin file.
- $deprecated(FeatureGating)
- Deprecated Feature gating class.
По умолчанию:null
Код Package::__construct() Package:: construct WC 10.5.2
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;
}