PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.21.4
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.21.4
V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 2.10.2 All 137 releases
← All changes | bitforms.php +29 -26 1.42.21.4 View file →
@@ -2,14 +2,14 @@
2 2
3 3 /**
4 4 * Plugin Name: Bit Form
5 5 * Plugin URI: https://www.bitapps.pro/bit-form
6 - * Description: Wordpress form builder plugin
7 - * Version: 1.4.17
8 - * Author: Bit Apps
6 + * Description: Contact Form Builder Plugin: Multi Step Contact Form, Payment Form, Custom Contact Form Plugin by Bit Form
7 + * Version: 2.21.4
8 + * Author: Contact Form Builder - Bit Form
9 9 * Author URI: https://www.bitapps.pro
10 - * Text Domain: bitform
11 - * Requires PHP: 5.6
10 + * Text Domain: bit-form
11 + * Requires PHP: 7.4
12 12 * Domain Path: /languages
13 13 * License: GPLv2 or later
14 14 */
15 15
@@ -16,23 +16,26 @@
16 16 /***
17 17 * If try to direct access plugin folder it will Exit
18 18 **/
19 19 if (!defined('ABSPATH')) {
20 - exit;
20 + exit;
21 21 }
22 22
23 -
24 23 // Define most essential constants.
25 -define('BITFORMS_VERSION', '1.4.17');
24 +define('BITFORMS_VERSION', '2.21.4');
26 25 define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__);
27 26
28 27 global $bitforms_db_version;
29 -$bitforms_db_version = '1.2';
28 +$bitforms_db_version = '2.4';
29 +define('BITFORMS_DB_VERSION', $bitforms_db_version);
30 +define('BITFORMS_REQUIRED_WP_VERSION', '5.1');
31 +define('BITFORMS_REQUIRED_PHP_VERSION', '7.4');
32 +define('BITFORMS_API_VERSION', '1.0');
30 33
31 -
32 34 if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
33 - require_once plugin_dir_path(__FILE__) . 'includes/loader.php';
35 + require_once plugin_dir_path(__FILE__) . 'includes/loader.php';
34 36 }
37 +
35 38 /**
36 39 * Handles plugin activation.
37 40 *
38 41 * Throws an error if the plugin is activated on an older version than PHP 5.6.
@@ -38,16 +41,16 @@
38 41 * Throws an error if the plugin is activated on an older version than PHP 5.6.
39 42 */
40 43 function bitforms_activate_plugin($network_wide)
41 44 {
42 - if (version_compare(PHP_VERSION, '5.6.0', '<')) {
43 - wp_die(
44 - esc_html__('bitforms requires PHP version 5.6.', 'bitform'),
45 - esc_html__('Error Activating', 'bitform')
46 - );
47 - }
45 + if (version_compare(PHP_VERSION, '5.6.0', '<')) {
46 + wp_die(
47 + 'Bit Form requires PHP version 5.6 or higher.',
48 + 'Error Activating'
49 + );
50 + }
48 51
49 - do_action('bitforms_activation', $network_wide);
52 + do_action('bitforms_activation', $network_wide);
50 53 }
51 54
52 55 register_activation_hook(__FILE__, 'bitforms_activate_plugin');
53 56
@@ -55,13 +58,13 @@
55 58 * Handles plugin deactivation.
56 59 */
57 60 function bitforms_deactivate_plugin($network_wide)
58 61 {
59 - if (version_compare(PHP_VERSION, '5.6.0', '<')) {
60 - return;
61 - }
62 + if (version_compare(PHP_VERSION, '5.6.0', '<')) {
63 + return;
64 + }
62 65
63 - do_action('bitforms_deactivation', $network_wide);
66 + do_action('bitforms_deactivation', $network_wide);
64 67 }
65 68
66 69 register_deactivation_hook(__FILE__, 'bitforms_deactivate_plugin');
67 70
@@ -71,11 +74,11 @@
71 74 * @access private
72 75 */
73 76 function bitforms_uninstall_plugin()
74 77 {
75 - if (version_compare(PHP_VERSION, '5.6.0', '<')) {
76 - return;
77 - }
78 + if (version_compare(PHP_VERSION, '5.6.0', '<')) {
79 + return;
80 + }
78 81
79 - do_action('bitforms_uninstall');
82 + do_action('bitforms_uninstall');
80 83 }
81 84 register_uninstall_hook(__FILE__, 'bitforms_uninstall_plugin');