PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
← All changes | includes/class-wpfnl.php +26 -0 3.12.10 → 3.13.3 View file →
@@ -291,8 +291,19 @@
291 291 add_action( 'admin_notices', array('WPFunnels\Admin\Notices\Notice', 'woocommerce_dependency_notice') );
292 292 return;
293 293 }*/
294 294
295 + /**
296 + * Store Checkout needs WooCommerce. While it is missing, keep the
297 + * activation endpoint registered so the Store Checkout screen can
298 + * install/activate WooCommerce without leaving the page.
299 + *
300 + * @since 3.13.1
301 + */
302 + if ( ! Wpfnl_functions::is_wc_active() ) {
303 + add_action( 'wp_ajax_plugin_install_success', array( $this, 'plugin_install_success' ) );
304 + }
305 +
295 306 // load core modules
296 307 add_action( 'admin_footer', array($this, 'admin_footer_style') );
297 308 add_action( 'wpfunnels/pro_init', array( $this, 'after_pro_plugin_init' ) );
298 309 add_action( 'plugins_loaded', array($this, 'load_plugin'), 9 );
@@ -464,8 +475,23 @@
464 475 $this->import_funnel = new Wpfnl_Import();
465 476
466 477 $this->reporting = Reporting::get_instance();
467 478 $this->reporting->init();
479 +
480 + // AI copilot module: settings migration + conversation tables.
481 + \WPFunnels\AI\AIInit::init();
482 +
483 + // Tool layer: WordPress Abilities (always, when available) + the MCP
484 + // server for external agents (gated on the `_wpfnl_mcp_enabled` option).
485 + // Ability registration must NOT depend on that option — the in-plugin
486 + // AI copilot resolves its own tools through the same registry
487 + // (ToolGateway -> wp_get_abilities()), so turning off the external
488 + // MCP endpoint would otherwise silently leave the copilot with zero
489 + // tools to call.
490 + if ( \WPFunnels\MCP\MCPInit::abilitiesApiAvailable() ) {
491 + $expose_mcp_server = 'no' !== get_option( '_wpfnl_mcp_enabled', 'yes' );
492 + ( new \WPFunnels\MCP\MCPInit() )->init( $expose_mcp_server );
493 + }
468 494
469 495 Wpfnl_Activator::init();
470 496 }
471 497