PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Modules/MCP/MCPInit.php +6 -0 1.5.1 → 1.6.5 View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace FluentCart\App\Modules\MCP;
4 4
5 +use FluentCart\App\Modules\MCP\Support\CrmContact;
5 6 use FluentCart\App\Modules\MCP\Support\PermissionGate;
6 7 use FluentCart\App\Modules\MCP\Tools\ContextTools;
7 8
8 9 /**
@@ -70,8 +71,13 @@
70 71 'fluent_cart/payment_settings_saved',
71 72 ] as $hook) {
72 73 add_action($hook, $invalidate);
73 74 }
75 +
76 + // FluentCRM contact context on get-customer / get-order, mirroring the
77 + // contact widget FluentCRM already renders on those admin screens.
78 + // No-op unless FluentCRM is active.
79 + CrmContact::register();
74 80
75 81 // Warn the operator if they enabled MCP but no adapter is installed.
76 82 add_action('admin_notices', [$this, 'maybeShowAdapterNotice']);
77 83 }