WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

ShippingLabelBannerDisplayRules::should_display_banner() public WC 1.0

Determines whether banner is eligible for display (does not include a/b logic).

{} It's a method of the class: ShippingLabelBannerDisplayRules{}

No Hooks.

Return

null. Nothing.

Usage

$ShippingLabelBannerDisplayRules = new ShippingLabelBannerDisplayRules();
$ShippingLabelBannerDisplayRules->should_display_banner();

Code of ShippingLabelBannerDisplayRules::should_display_banner() WC 5.3.0

<?php
public function should_display_banner() {
	return $this->banner_not_dismissed() &&
		$this->jetpack_installed_and_active() &&
		$this->jetpack_up_to_date() &&
		$this->jetpack_connected &&
		$this->no_incompatible_plugins_installed &&
		$this->order_has_shippable_products() &&
		$this->store_in_us_and_usd() &&
		( $this->wcs_not_installed() || (
			$this->wcs_up_to_date() && ! $this->wcs_tos_accepted
		) );
}