Automattic\WooCommerce\Internal\Admin
ShippingLabelBannerDisplayRules::should_display_banner
Determines whether banner is eligible for display (does not include a/b logic).
Method of the class: ShippingLabelBannerDisplayRules{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ShippingLabelBannerDisplayRules = new ShippingLabelBannerDisplayRules(); $ShippingLabelBannerDisplayRules->should_display_banner();
ShippingLabelBannerDisplayRules::should_display_banner() ShippingLabelBannerDisplayRules::should display banner code WC 10.3.6
public function should_display_banner() {
return $this->banner_not_dismissed() &&
$this->dotcom_connected &&
$this->no_incompatible_plugins_installed &&
$this->order_has_shippable_products() &&
$this->store_in_us_and_usd() &&
$this->wcs_not_installed();
}