| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * @wordpress-plugin |
| 15 | 15 | * Plugin Name: WPFunnels |
| 16 | 16 | * Plugin URI: https://getwpfunnels.com |
| 17 | 17 | * Description: Easiest 💥 Sales Funnel Builder 💥 For WordPress & WooCommerce by WPFunnels - Generate Leads & Craft A Highly-Converting Sales Journey In Minutes |
| 18 | - * Version: 3.10.8 | |
| 18 | + * Version: 3.13.3 | |
| 19 | 19 | * Author: WPFunnels Team |
| 20 | 20 | * Author URI: https://getwpfunnels.com |
| 21 | 21 | * License: GPL-2.0+ |
| 22 | 22 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | * Rename this for your plugin and update it as you release new versions. |
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | if (!defined('WPFNL_VERSION')) { |
| 43 | - define('WPFNL_VERSION', '3.10.8'); | |
| 43 | + define('WPFNL_VERSION', '3.13.3'); | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | if (!defined('WPFNL_FILE')) { |
| 47 | 47 | define('WPFNL_FILE', __FILE__); |
| @@ -86,13 +86,17 @@ | ||
| 86 | 86 | define('WPFNL_TRASH_FUNNEL_SLUG', 'trash_funnels'); |
| 87 | 87 | define('WPFNL_FUNNELS_POST_TYPE', 'wpfunnels'); |
| 88 | 88 | define('WPFNL_STEPS_POST_TYPE', 'wpfunnel_steps'); |
| 89 | 89 | define('WPFNL_CREATE_FUNNEL_SLUG', 'create_funnel'); |
| 90 | +define('WPFNL_AI_FUNNEL_PAGE_SLUG', 'wpfnl-ai-funnel'); | |
| 90 | 91 | define('WPFNL_GLOBAL_SETTINGS_SLUG', 'wpfnl_settings'); |
| 91 | 92 | define('WPFNL_AUTOMATIONS_SLUG', 'wpfnl_automations'); |
| 92 | 93 | define('WPFNL_ADDONS_SLUG', 'wpfnl_addons'); |
| 93 | 94 | define('WPFNL_STORE_CHECKOUT_SLUG', 'store_checkout'); |
| 94 | 95 | define('WPFNL_INTEGRATIONS_MAIN_PAGE_SLUG', 'wpfunnels_integrations'); |
| 96 | +// React single-page admin. Runs alongside the existing screens while they are | |
| 97 | +// migrated one at a time; routes live in the hash (#/settings, …). | |
| 98 | +define('WPFNL_REACT_ADMIN_SLUG', 'wpfunnels-admin'); | |
| 95 | 99 | define('WPFNL_FUNNEL_PER_PAGE', 10); |
| 96 | 100 | define('WPFNL_TEMPLATES_OPTION_KEY', 'wpfunnels_remote_templates'); |
| 97 | 101 | define('WPFNL_TESTS', false); |
| 98 | 102 | define('WPFNL_DOCUMENTATION_LINK', 'https://getwpfunnels.com/docs/wpfunnels-wordpress-funnel-builder/'); |
| @@ -153,14 +157,21 @@ | ||
| 153 | 157 | require_once plugin_dir_path(__FILE__) . 'includes/utils/class-wpfnl-deactivator.php'; |
| 154 | 158 | Wpfnl_Deactivator::deactivate(); |
| 155 | 159 | } |
| 156 | 160 | |
| 161 | +/* | |
| 162 | + * Registered before the telemetry client is built: the SDK registers its own | |
| 163 | + * deactivation callback when constructed, at the same priority, and that one | |
| 164 | + * deletes the "feedback modal submitted" transient. wpfunnels_plugin_deactivated | |
| 165 | + * (which sends the activity trail) has to read it first. | |
| 166 | + */ | |
| 167 | +register_activation_hook(__FILE__, 'activate_wpfnl'); | |
| 168 | +register_deactivation_hook(__FILE__, 'deactivate_wpfnl'); | |
| 169 | + | |
| 157 | 170 | require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php'; |
| 171 | +require_once plugin_dir_path(__FILE__) . 'includes/core/Tracking/class-wpfnl-activity-trail.php'; | |
| 158 | 172 | require_once plugin_dir_path(__FILE__) . 'includes/core/Tracking/class-wpfnl-telemetry.php'; |
| 159 | 173 | Telemetry::init(); |
| 160 | - | |
| 161 | -register_activation_hook(__FILE__, 'activate_wpfnl'); | |
| 162 | -register_deactivation_hook(__FILE__, 'deactivate_wpfnl'); | |
| 163 | 174 | |
| 164 | 175 | |
| 165 | 176 | |
| 166 | 177 | /** |