PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.3.21
HTML Forms – Simple WordPress Forms Plugin v1.3.21
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
← All changes | html-forms.php +17 -31 trunk1.3.21 View file →
@@ -1,17 +1,17 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: HTML Forms
4 -Plugin URI: https://htmlformsplugin.com/
5 -Description: A simpler, faster, and smarter WordPress forms plugin.
6 -Version: 1.6.5
7 -Author: HTML Forms
8 -Author URI: https://htmlformsplugin.com/
4 +Plugin URI: https://www.htmlformsplugin.com/#utm_source=wp-plugin&utm_medium=html-forms&utm_campaign=plugins-page
5 +Description: Not just another forms plugin. Simple and flexible.
6 +Version: 1.3.21
7 +Author: ibericode
8 +Author URI: https://ibericode.com/
9 9 License: GPL v3
10 10 Text Domain: html-forms
11 11
12 12 HTML Forms
13 -Copyright (C) 2017-2024, Link Software LLC <support@linksoftwarellc.com>
13 +Copyright (C) 2017-2021, Danny van Kooten, danny@ibericode.com
14 14
15 15 This program is free software: you can redistribute it and/or modify
16 16 it under the terms of the GNU General Public License as published by
17 17 the Free Software Foundation, either version 3 of the License, or
@@ -33,10 +33,19 @@
33 33
34 34 $forms = new Forms( __FILE__, $settings );
35 35 $forms->hook();
36 36
37 + // hook actions
38 + $email_action = new Actions\Email();
39 + $email_action->hook();
40 +
41 + if( class_exists( 'MC4WP_MailChimp' ) ) {
42 + $mailchimp_action = new Actions\MailChimp();
43 + $mailchimp_action->hook();
44 + }
45 +
37 46 if( is_admin() ) {
38 - if( ! \defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
47 + if( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
39 48 $admin = new Admin\Admin( __FILE__ );
40 49 $admin->hook();
41 50 }
42 51
@@ -41,40 +50,17 @@
41 50 }
42 51
43 52 $gdpr = new Admin\GDPR();
44 53 $gdpr->hook();
45 -
46 - if( function_exists('hcaptcha') ) {
47 - $hcaptcha = new Admin\Hcaptcha();
48 - $hcaptcha->hook();
49 - }
50 54 }
51 -
52 - // Initialize Google reCAPTCHA v3 (needs to run on both frontend and backend)
53 - if( \class_exists( 'HTML_Forms\Admin\Recaptcha' ) ) {
54 - $recaptcha = new Admin\Recaptcha();
55 - $recaptcha->hook();
56 - }
57 55 }
58 56
59 -function _hf_actions() {
60 - $email_action = new Actions\Email();
61 - $email_action->hook();
57 +define('HTML_FORMS_VERSION', '1.3.21');
62 58
63 - if( \class_exists( 'MC4WP_MailChimp' ) ) {
64 - $mailchimp_action = new Actions\MailChimp();
65 - $mailchimp_action->hook();
66 - }
67 -}
68 -
69 -define('HTML_FORMS_VERSION', '1.6.5');
70 -
71 59 if( ! function_exists( 'hf_get_form' ) ) {
72 60 require __DIR__ . '/vendor/autoload.php';
73 61 }
74 -
75 62 add_action( 'plugins_loaded', 'HTML_Forms\\_bootstrap', 10 );
76 -add_action( 'init', 'HTML_Forms\\_hf_actions', 10 );
77 63
78 64 register_activation_hook( __FILE__, '_hf_on_plugin_activation');
79 65
80 66 // add cap to site admin after being added to blog