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