← All changes
|
vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php
+4
-0
4.2.15
→
4.2.16
View file →
| @@ -1263,8 +1263,12 @@ | ||
| 1263 | 1263 | /** |
| 1264 | 1264 | * Render Easy MCP AI notice. |
| 1265 | 1265 | */ |
| 1266 | 1266 | public function render_easy_mcp_notice() { |
| 1267 | + // A product on this site already offers the connector in its own words. | |
| 1268 | + if ( class_exists( Ai_Connect::class ) && Ai_Connect::has_products() ) { | |
| 1269 | + return; | |
| 1270 | + } | |
| 1267 | 1271 | // Cards are injected only when a paid product loaded Featured_plugins; only then can this request already show one. |
| 1268 | 1272 | if ( apply_filters( 'themeisle_sdk_plugin_api_filter_registered', false ) && $this->is_easy_mcp_card_request() ) { |
| 1269 | 1273 | return; |
| 1270 | 1274 | } |