| @@ -2,14 +2,15 @@ | ||
| 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.5.2 | |
| 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: 3.3.1 | |
| 8 | + * Author: Contact Form Builder - Bit Form | |
| 9 | 9 | * Author URI: https://www.bitapps.pro |
| 10 | 10 | * Text Domain: bit-form |
| 11 | - * Requires PHP: 5.6 | |
| 11 | + * Requires at least: 6.5 | |
| 12 | + * Requires PHP: 7.4 | |
| 12 | 13 | * Domain Path: /languages |
| 13 | 14 | * License: GPLv2 or later |
| 14 | 15 | */ |
| 15 | 16 | |
| @@ -16,23 +17,27 @@ | ||
| 16 | 17 | /*** |
| 17 | 18 | * If try to direct access plugin folder it will Exit |
| 18 | 19 | **/ |
| 19 | 20 | if (!defined('ABSPATH')) { |
| 20 | - exit; | |
| 21 | + exit; | |
| 21 | 22 | } |
| 22 | 23 | |
| 23 | - | |
| 24 | 24 | // Define most essential constants. |
| 25 | -define('BITFORMS_VERSION', '1.5.2'); | |
| 25 | +define('BITFORMS_VERSION', '3.3.1'); | |
| 26 | 26 | define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__); |
| 27 | +define('BITFORMS_REQUIRED_BITFORMPRO_VERSION', '3.3.1'); | |
| 27 | 28 | |
| 28 | 29 | global $bitforms_db_version; |
| 29 | -$bitforms_db_version = '1.3'; | |
| 30 | +$bitforms_db_version = '3.2'; | |
| 31 | +define('BITFORMS_DB_VERSION', $bitforms_db_version); | |
| 32 | +define('BITFORMS_REQUIRED_WP_VERSION', '5.1'); | |
| 33 | +define('BITFORMS_REQUIRED_PHP_VERSION', '7.4'); | |
| 34 | +define('BITFORMS_API_VERSION', '1.0'); | |
| 30 | 35 | |
| 31 | - | |
| 32 | 36 | if (version_compare(PHP_VERSION, '5.6.0', '>=')) { |
| 33 | - require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 37 | + require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 34 | 38 | } |
| 39 | + | |
| 35 | 40 | /** |
| 36 | 41 | * Handles plugin activation. |
| 37 | 42 | * |
| 38 | 43 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| @@ -38,16 +43,16 @@ | ||
| 38 | 43 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| 39 | 44 | */ |
| 40 | 45 | function bitforms_activate_plugin($network_wide) |
| 41 | 46 | { |
| 42 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 43 | - wp_die( | |
| 44 | - esc_html__('bitforms requires PHP version 5.6.', 'bit-form'), | |
| 45 | - esc_html__('Error Activating', 'bit-form') | |
| 46 | - ); | |
| 47 | - } | |
| 47 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 48 | + wp_die( | |
| 49 | + 'Bit Form requires PHP version 5.6 or higher.', | |
| 50 | + 'Error Activating' | |
| 51 | + ); | |
| 52 | + } | |
| 48 | 53 | |
| 49 | - do_action('bitforms_activation', $network_wide); | |
| 54 | + do_action('bitforms_activation', $network_wide); | |
| 50 | 55 | } |
| 51 | 56 | |
| 52 | 57 | register_activation_hook(__FILE__, 'bitforms_activate_plugin'); |
| 53 | 58 | |
| @@ -55,13 +60,13 @@ | ||
| 55 | 60 | * Handles plugin deactivation. |
| 56 | 61 | */ |
| 57 | 62 | function bitforms_deactivate_plugin($network_wide) |
| 58 | 63 | { |
| 59 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 60 | - return; | |
| 61 | - } | |
| 64 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 65 | + return; | |
| 66 | + } | |
| 62 | 67 | |
| 63 | - do_action('bitforms_deactivation', $network_wide); | |
| 68 | + do_action('bitforms_deactivation', $network_wide); | |
| 64 | 69 | } |
| 65 | 70 | |
| 66 | 71 | register_deactivation_hook(__FILE__, 'bitforms_deactivate_plugin'); |
| 67 | 72 | |
| @@ -71,11 +76,11 @@ | ||
| 71 | 76 | * @access private |
| 72 | 77 | */ |
| 73 | 78 | function bitforms_uninstall_plugin() |
| 74 | 79 | { |
| 75 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 76 | - return; | |
| 77 | - } | |
| 80 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 81 | + return; | |
| 82 | + } | |
| 78 | 83 | |
| 79 | - do_action('bitforms_uninstall'); | |
| 84 | + do_action('bitforms_uninstall'); | |
| 80 | 85 | } |
| 81 | 86 | register_uninstall_hook(__FILE__, 'bitforms_uninstall_plugin'); |