Automattic\WooCommerce\Blocks

Package::get_package()protected staticWC 2.5.0

For back compat this is provided. Ideally, you should register your class with Automattic\Woocommerce\Blocks\Container and make Package a dependency.

{} Это метод класса: Package{}

Хуков нет.

Возвращает

Package. The Package instance class

Использование

$result = Package::get_package();

Список изменений

С версии 2.5.0 Введена.

Код Package::get_package() WC 6.8.0

protected static function get_package() {
	return self::container()->get( NewPackage::class );
}