Automattic\WooCommerce\Internal\Admin
ShippingLabelBannerDisplayRules::__construct
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() 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;
}