Automattic\WooCommerce\Internal\Admin

ShippingLabelBannerDisplayRules::__construct()publicWC 1.0

Constructor.

Method of the class: ShippingLabelBannerDisplayRules{}

No Hooks.

Return

null. Nothing (null).

Usage

$ShippingLabelBannerDisplayRules = new ShippingLabelBannerDisplayRules();
$ShippingLabelBannerDisplayRules->__construct( $jetpack_version, $jetpack_connected, $wcs_version, $wcs_tos_accepted, $incompatible_plugins_installed );
$jetpack_version(string) (required)
Installed Jetpack version to check.
$jetpack_connected(true|false) (required)
Is Jetpack connected?.
$wcs_version(string) (required)
Installed WooCommerce Shipping & Tax version to check.
$wcs_tos_accepted(true|false) (required)
WooCommerce Shipping & Tax Terms of Service accepted?.
$incompatible_plugins_installed(true|false) (required)
Are there any incompatible plugins installed?.

ShippingLabelBannerDisplayRules::__construct() code WC 8.7.0

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