ShippingLabelBannerDisplayRules
Determines whether or not the Shipping Label Banner should be displayed
Description Description
Source Source
File: packages/woocommerce-admin/src/Features/ShippingLabelBannerDisplayRules.php
Methods Methods
- __construct — Constructor.
- banner_not_dismissed — Checks if the banner was not dismissed by the user.
- jetpack_installed_and_active — Checks if jetpack is installed and active.
- jetpack_up_to_date — Checks if Jetpack version is supported.
- order_has_shippable_products — Checks if there's a shippable product in the current order.
- should_display_banner — Determines whether banner is eligible for display (does not include a/b logic).
- store_in_us_and_usd — Checks if the store is in the US and has its default currency set to USD.
- wcs_not_installed — Checks if WooCommerce Shipping & Tax is not installed.
- wcs_up_to_date — Checks if WooCommerce Shipping & Tax is up to date.