Automattic\WooCommerce\Internal\Admin

ShippingLabelBannerDisplayRules::__constructpublicWC 1.0

Constructor.

Метод класса: ShippingLabelBannerDisplayRules{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$ShippingLabelBannerDisplayRules = new ShippingLabelBannerDisplayRules();
$ShippingLabelBannerDisplayRules->__construct( $dotcom_connected, $wcs_version, $incompatible_plugins_installed );
$dotcom_connected(true|false) (обязательный)
Is site connected to wordpress.com?.
$wcs_version(строка|null) (обязательный)
Installed WooCommerce Shipping version to check, null if not installed.
$incompatible_plugins_installed(true|false) (обязательный)
Are there any incompatible plugins installed?.

Код ShippingLabelBannerDisplayRules::__construct() WC 11.1.0

public function __construct( $dotcom_connected, $wcs_version, $incompatible_plugins_installed ) {
	$this->dotcom_connected                  = $dotcom_connected;
	$this->wcs_version                       = $wcs_version;
	$this->no_incompatible_plugins_installed = ! $incompatible_plugins_installed;
}