PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.4.18
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.4.18
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
bit-form / bitforms.php

bitforms.php in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 1.4.18, at bitforms.php

82 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Bit Form
5 * Plugin URI: https://www.bitapps.pro/bit-form
6 * Description: Wordpress form builder plugin
7 * Version: 1.4.18
8 * Author: Bit Apps
9 * Author URI: https://www.bitapps.pro
10 * Text Domain: bitform
11 * Requires PHP: 5.6
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
24 // Define most essential constants.
25 define('BITFORMS_VERSION', '1.4.18');
26 define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__);
27
28 global $bitforms_db_version;
29 $bitforms_db_version = '1.2';
30
31
32 if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
33 require_once plugin_dir_path(__FILE__) . 'includes/loader.php';
34 }
35 /**
36 * Handles plugin activation.
37 *
38 * Throws an error if the plugin is activated on an older version than PHP 5.6.
39 */
40 function bitforms_activate_plugin($network_wide)
41 {
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 }
48
49 do_action('bitforms_activation', $network_wide);
50 }
51
52 register_activation_hook(__FILE__, 'bitforms_activate_plugin');
53
54 /**
55 * Handles plugin deactivation.
56 */
57 function bitforms_deactivate_plugin($network_wide)
58 {
59 if (version_compare(PHP_VERSION, '5.6.0', '<')) {
60 return;
61 }
62
63 do_action('bitforms_deactivation', $network_wide);
64 }
65
66 register_deactivation_hook(__FILE__, 'bitforms_deactivate_plugin');
67
68 /**
69 * Handles plugin uninstall.
70 *
71 * @access private
72 */
73 function bitforms_uninstall_plugin()
74 {
75 if (version_compare(PHP_VERSION, '5.6.0', '<')) {
76 return;
77 }
78
79 do_action('bitforms_uninstall');
80 }
81 register_uninstall_hook(__FILE__, 'bitforms_uninstall_plugin');
82