Automattic\WooCommerce\Blocks\Domain

Package::__construct()publicWC 1.0

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() 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;
}