PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.5.2
HTML Forms – Simple WordPress Forms Plugin v1.5.2
trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 1.3.17 All 66 releases
html-forms / html-forms.php

html-forms.php in HTML Forms – Simple WordPress Forms Plugin 1.5.2, at html-forms.php

79 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: HTML Forms
4 Plugin URI: https://htmlformsplugin.com/
5 Description: A simpler, faster, and smarter WordPress forms plugin.
6 Version: 1.5.2
7 Author: HTML Forms
8 Author URI: https://htmlformsplugin.com/
9 License: GPL v3
10 Text Domain: html-forms
11
12 HTML Forms
13 Copyright (C) 2017-2024, Link Software LLC <support@linksoftwarellc.com>
14
15 This program is free software: you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation, either version 3 of the License, or
18 (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program. If not, see <http://www.gnu.org/licenses/>.
27 */
28
29 namespace HTML_Forms;
30
31 function _bootstrap() {
32 $settings = hf_get_settings();
33
34 $forms = new Forms( __FILE__, $settings );
35 $forms->hook();
36
37 if( is_admin() ) {
38 if( ! \defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
39 $admin = new Admin\Admin( __FILE__ );
40 $admin->hook();
41 }
42
43 $gdpr = new Admin\GDPR();
44 $gdpr->hook();
45
46 if( function_exists('hcaptcha') ) {
47 $hcaptcha = new Admin\Hcaptcha();
48 $hcaptcha->hook();
49 }
50 }
51 }
52
53 function _hf_actions() {
54 $email_action = new Actions\Email();
55 $email_action->hook();
56
57 if( \class_exists( 'MC4WP_MailChimp' ) ) {
58 $mailchimp_action = new Actions\MailChimp();
59 $mailchimp_action->hook();
60 }
61 }
62
63 define('HTML_FORMS_VERSION', '1.5.2');
64
65 if( ! function_exists( 'hf_get_form' ) ) {
66 require __DIR__ . '/vendor/autoload.php';
67 }
68
69 add_action( 'plugins_loaded', 'HTML_Forms\\_bootstrap', 10 );
70 add_action( 'init', 'HTML_Forms\\_hf_actions', 10 );
71
72 register_activation_hook( __FILE__, '_hf_on_plugin_activation');
73
74 // add cap to site admin after being added to blog
75 add_action('add_user_to_blog', '_hf_on_add_user_to_blog', 10, 3);
76
77 // install db table for newly added sites
78 add_action('wp_insert_site', '_hf_on_wp_insert_site');
79