Automattic\WooCommerce\Internal\Admin
ShippingLabelBannerDisplayRules::__construct()
Constructor.
Метод класса: ShippingLabelBannerDisplayRules{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ShippingLabelBannerDisplayRules = new ShippingLabelBannerDisplayRules(); $ShippingLabelBannerDisplayRules->__construct( $jetpack_version, $jetpack_connected, $wcs_version, $wcs_tos_accepted, $incompatible_plugins_installed );
- $jetpack_version(строка) (обязательный)
- Installed Jetpack version to check.
- $jetpack_connected(true|false) (обязательный)
- Is Jetpack connected?.
- $wcs_version(строка) (обязательный)
- Installed WooCommerce Shipping & Tax version to check.
- $wcs_tos_accepted(true|false) (обязательный)
- WooCommerce Shipping & Tax Terms of Service accepted?.
- $incompatible_plugins_installed(true|false) (обязательный)
- Are there any incompatible plugins installed?.
Код ShippingLabelBannerDisplayRules::__construct() ShippingLabelBannerDisplayRules:: construct 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; }