Automattic\WooCommerce\Internal\Admin
ShippingLabelBannerDisplayRules::__construct
Constructor.
Method of the class: ShippingLabelBannerDisplayRules{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ShippingLabelBannerDisplayRules = new ShippingLabelBannerDisplayRules(); $ShippingLabelBannerDisplayRules->__construct( $dotcom_connected, $wcs_version, $incompatible_plugins_installed );
- $dotcom_connected(true|false) (required)
- Is site connected to wordpress.com?.
- $wcs_version(string|null) (required)
- Installed WooCommerce Shipping version to check, null if not installed.
- $incompatible_plugins_installed(true|false) (required)
- Are there any incompatible plugins installed?.
ShippingLabelBannerDisplayRules::__construct() ShippingLabelBannerDisplayRules:: construct code WC 10.3.3
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;
}