PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.3.33
HTML Forms – Simple WordPress Forms Plugin v1.3.33
1.7.0 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 All 67 releases
← All changes | html-forms.php +12 -26 trunk1.3.33 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: HTML Forms
4 4 Plugin URI: https://htmlformsplugin.com/
5 -Description: A simpler, faster, and smarter WordPress forms plugin.
6 -Version: 1.7.0
5 +Description: Not just another forms plugin. Simple and flexible.
6 +Version: 1.3.33
7 7 Author: HTML Forms
8 8 Author URI: https://htmlformsplugin.com/
9 9 License: GPL v3
10 10 Text Domain: html-forms
@@ -33,8 +33,17 @@
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 47 if( ! \defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
39 48 $admin = new Admin\Admin( __FILE__ );
40 49 $admin->hook();
@@ -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.33');
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.7.0');
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