PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 2.8.16
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v2.8.16
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
wpfunnels / wpfnl.php

wpfnl.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 2.8.16, at wpfnl.php

174 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://getwpfunnels.com
12 * @since 1.0.0
13 * @package Wpfnl
14 *
15 * @wordpress-plugin
16 * Plugin Name: WPFunnels
17 * Plugin URI: https://getwpfunnels.com
18 * Description: The Easiest Drag & Drop 🚀 Sales Funnel Builder 🚀 for WordPress to collect leads and increase sales.
19 * Version: 2.8.16
20 * Author: WPFunnels Team
21 * Author URI: https://getwpfunnels.com
22 * License: GPL-2.0+
23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24 * Text Domain: wpfnl
25 * Domain Path: /languages
26 */
27
28 use wPFunnels\Wpfnl;
29 // use WPFunnels\Wpfnl_functions;
30
31 // If this file is called directly, abort.
32 if (! defined('WPINC')) {
33 die;
34 }
35
36 /**
37 * Currently plugin version.
38 * Start at version 1.0.0 and use SemVer - https://semver.org
39 * Rename this for your plugin and update it as you release new versions.
40 */
41
42 if ( ! defined( 'WPFNL_VERSION' ) ) {
43 define('WPFNL_VERSION', '2.8.16');
44 }
45
46 if ( ! defined( 'WPFNL_FILE' ) ) {
47 define('WPFNL_FILE', __FILE__);
48 }
49
50 if ( ! defined( 'WPFNL_PATH' ) ) {
51 define('WPFNL_PATH', dirname(WPFNL_FILE));
52 }
53
54 if ( ! defined( 'WPFNL_BASE' ) ) {
55 define('WPFNL_BASE', plugin_basename(WPFNL_FILE));
56 }
57
58 if ( ! defined( 'WPFNL_DIR' ) ) {
59 define('WPFNL_DIR', plugin_dir_path(WPFNL_FILE));
60 }
61
62 if ( ! defined( 'WPFNL_URL' ) ) {
63 define('WPFNL_URL', plugins_url('/', WPFNL_FILE));
64 }
65
66 if ( ! defined( 'WPFNL_DIR_URL' ) ) {
67 define('WPFNL_DIR_URL', plugin_dir_url(WPFNL_FILE));
68 }
69
70 if ( ! defined( 'GETWPFUNNEL_HOME_URL' ) ) {
71 define('GETWPFUNNEL_HOME_URL', 'https://getwpfunnels.com/');
72 }
73
74
75 define('WPFNL_TEMPLATE_URL', '');
76 define('WPFNL_MAIN_PAGE_SLUG', 'wp_funnels');
77 define('WPFNL_SETTINGS_SLUG', 'wp_funnel_settings');
78 define('WPFNL_EDIT_FUNNEL_SLUG', 'edit_funnel');
79 define('WPFNL_FUNNELS_POST_TYPE', 'wpfunnels');
80 define('WPFNL_STEPS_POST_TYPE', 'wpfunnel_steps');
81 define('WPFNL_CREATE_FUNNEL_SLUG', 'create_funnel');
82 define('WPFNL_GLOBAL_SETTINGS_SLUG', 'wpfnl_settings');
83 define('WPFNL_FUNNEL_PER_PAGE', 10);
84 define('WPFNL_TEMPLATES_OPTION_KEY', 'wpfunnels_remote_templates');
85 define('WPFNL_TESTS', false);
86 define('WPFNL_DOCUMENTATION_LINK', 'https://getwpfunnels.com/docs/wpfunnels-wordpress-funnel-builder/');
87
88 define('WPFNL_ACTIVE_PLUGINS', apply_filters('active_plugins', get_option('active_plugins')));
89
90
91 define('WPFNL_TAXONOMY_TEMPLATES_BUILDER', 'template_builder' );
92 define('WPFNL_TAXONOMY_TEMPLATES_PROPERTY', 'template_type' );
93 define('WPFNL_TAXONOMY_TEMPLATES_INDUSTRIES', 'template_industries' );
94 define('WPFNL_TAXONOMY_STEP_TYPE', 'type' );
95 define('WPFNL_IS_REMOTE', false );
96 define('WPFNL_PRO', '/wpfunnels-pro/wpfnl-pro.php' );
97 define('WPFNL_PRO_REQUIRED_VERSION', '1.0.4' );
98
99
100
101 /**
102 * The core plugin class that is used to define internationalization,
103 * admin-specific hooks, and public-facing site hooks.
104 */
105 require plugin_dir_path(__FILE__) . 'includes/class-wpfnl.php';
106
107
108 /**
109 * The code that runs during plugin activation.
110 * This action is documented in includes/class-wpfnl-activator.php
111 */
112 function activate_wpfnl()
113 {
114 require_once plugin_dir_path(__FILE__) . 'includes/utils/class-wpfnl-activator.php';
115 Wpfnl_Activator::activate();
116 }
117
118 /**
119 * The code that runs during plugin deactivation.
120 * This action is documented in includes/class-wpfnl-deactivator.php
121 */
122 function deactivate_wpfnl()
123 {
124 require_once plugin_dir_path(__FILE__) . 'includes/utils/class-wpfnl-deactivator.php';
125 Wpfnl_Deactivator::deactivate();
126 }
127
128 register_activation_hook(__FILE__, 'activate_wpfnl');
129 register_deactivation_hook(__FILE__, 'deactivate_wpfnl');
130
131
132
133 function wpfnl() {
134 return Wpfnl::get_instance();
135 }
136
137 /**
138 * Begins execution of the plugin.
139 *
140 * Since everything within the plugin is registered via hooks,
141 * then kicking off the plugin from this point in the file does
142 * not affect the page life cycle.
143 *
144 * @since 1.0.0
145 */
146 function run_wpfnl() {
147 wpfnl()->run();
148 }
149 run_wpfnl();
150
151
152
153 /**
154 * Initialize the plugin tracker
155 *
156 * @return void
157 */
158 function appsero_init_tracker_wpfunnels() {
159 $client = new Appsero\Client( '6fb1e340-8276-4337-bca6-28a7cd186f06', 'WPFunnels', __FILE__ );
160 $client->insights()->init();
161 }
162 appsero_init_tracker_wpfunnels();
163
164
165
166 add_filter('et_builder_third_party_post_types', 'wpfnl_third_party_post_type', 10, 1);
167 function wpfnl_third_party_post_type($post_types) {
168 $post_types[] = WPFNL_STEPS_POST_TYPE;
169 return $post_types;
170 }
171
172
173
174