PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.3
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.3
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.3, at bitforms.php

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