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 +24 -32 1.11.3.33 View file →
@@ -1,17 +1,17 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: HTML Forms
4 -Plugin URI: https://htmlformsplus.com/#utm_source=wp-plugin&utm_medium=html-forms&utm_campaign=plugins-page
4 +Plugin URI: https://htmlformsplugin.com/
5 5 Description: Not just another forms plugin. Simple and flexible.
6 -Version: 1.1
7 -Author: ibericode
8 -Author URI: https://ibericode.com/
6 +Version: 1.3.33
7 +Author: HTML Forms
8 +Author URI: https://htmlformsplugin.com/
9 9 License: GPL v3
10 10 Text Domain: html-forms
11 11
12 -HTML Forms Plus
13 -Copyright (C) 2017, Danny van Kooten, danny@ibericode.com
12 +HTML Forms
13 +Copyright (C) 2017-2024, Link Software LLC <support@linksoftwarellc.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
@@ -27,13 +27,9 @@
27 27 */
28 28
29 29 namespace HTML_Forms;
30 30
31 -use wpdb;
32 -
33 31 function _bootstrap() {
34 - load_plugin_textdomain( 'html-forms', '', dirname( __FILE__ ) . '/languages' );
35 -
36 32 $settings = hf_get_settings();
37 33
38 34 $forms = new Forms( __FILE__, $settings );
39 35 $forms->hook();
@@ -41,38 +37,34 @@
41 37 // hook actions
42 38 $email_action = new Actions\Email();
43 39 $email_action->hook();
44 40
41 + if( \class_exists( 'MC4WP_MailChimp' ) ) {
42 + $mailchimp_action = new Actions\MailChimp();
43 + $mailchimp_action->hook();
44 + }
45 +
45 46 if( is_admin() ) {
46 - if( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
47 + if( ! \defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
47 48 $admin = new Admin\Admin( __FILE__ );
48 49 $admin->hook();
49 50 }
51 +
52 + $gdpr = new Admin\GDPR();
53 + $gdpr->hook();
50 54 }
51 55 }
52 56
53 -function _install() {
54 - /** @var wpdb */
55 - global $wpdb;
57 +define('HTML_FORMS_VERSION', '1.3.33');
56 58
57 - $table = $wpdb->prefix . 'hf_submissions';
58 -
59 - $wpdb->query("CREATE TABLE IF NOT EXISTS {$table}(
60 - `id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
61 - `form_id` INT UNSIGNED NOT NULL,
62 - `data` TEXT NOT NULL,
63 - `user_agent` TEXT NULL,
64 - `ip_address` VARCHAR(255) NULL,
65 - `referer_url` VARCHAR(255) NULL,
66 - `submitted_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
67 -);");
68 -
59 +if( ! function_exists( 'hf_get_form' ) ) {
60 + require __DIR__ . '/vendor/autoload.php';
69 61 }
62 +add_action( 'plugins_loaded', 'HTML_Forms\\_bootstrap', 10 );
70 63
71 -define( 'HTML_FORMS_VERSION', '1.1' );
64 +register_activation_hook( __FILE__, '_hf_on_plugin_activation');
72 65
73 -if( ! function_exists( 'hf_get_form' ) ) {
74 - require __DIR__ . '/vendor/autoload.php';
75 -}
66 +// add cap to site admin after being added to blog
67 +add_action('add_user_to_blog', '_hf_on_add_user_to_blog', 10, 3);
76 68
77 -register_activation_hook( __FILE__, 'HTML_Forms\\_install');
78 -add_action( 'plugins_loaded', 'HTML_Forms\\_bootstrap', 10 );
69 +// install db table for newly added sites
70 +add_action('wp_insert_site', '_hf_on_wp_insert_site');