← All changes
|
vendor/codeinwp/themeisle-sdk/src/Modules/Notification.php
+3
-0
3.1.3
→
3.4.2
View file →
| @@ -429,8 +429,11 @@ | ||
| 429 | 429 | * |
| 430 | 430 | * @return Notification Module instance. |
| 431 | 431 | */ |
| 432 | 432 | public function load( $product ) { |
| 433 | + if ( apply_filters( 'themeisle_sdk_hide_notifications', false ) ) { | |
| 434 | + return; | |
| 435 | + } | |
| 433 | 436 | $this->product = $product; |
| 434 | 437 | |
| 435 | 438 | $notifications = apply_filters( 'themeisle_sdk_registered_notifications', [] ); |
| 436 | 439 | $notifications = array_filter( |