We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b99a936 + 0ac4f2c commit 5ca4858Copy full SHA for 5ca4858
assets/css/banner.css
@@ -47,4 +47,8 @@
47
.tsdk-banner-urgency-text {
48
left: 0%;
49
}
50
+}
51
+
52
+.notice:not(#tsdk_banner) {
53
+ display: none;
54
src/Modules/Announcements.php
@@ -325,9 +325,9 @@ public function black_friday_notice_render() {
325
foreach ( Loader::get_products() as $product ) {
326
$slug = $product->get_slug();
327
328
- // Do not add if the contains the string 'pro'.
329
- if ( strpos( $slug, 'pro' ) !== false ) {
330
- continue;
+ // NOTE: No notice if the user has at least one Pro product.
+ if ( $product->requires_license() ) {
+ return;
331
332
333
$product_names[] = $product->get_name();
0 commit comments