Version Description
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Easy Forms for MailChimp |
Version | 6.3.20 |
Comparing to | |
See all releases |
Code changes from version 6.3.19 to 6.3.20
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
@@ -1641,7 +1641,7 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1641 |
* @param array | $excluded_post_types | The array of default excluded post types
|
1642 |
* @return array| $excluded_post_types | The array of user-defined excluded post types
|
1643 |
*/
|
1644 |
-
$excluded_post_types = array( 'attachment' , 'revision' , 'nav_menu_item', 'shop_order', 'shop_order_refund', 'custom_css', 'customize_changeset' );
|
1645 |
$excluded_post_types = apply_filters( 'yikes-mailchimp-excluded-redirect-post-types', $excluded_post_types );
|
1646 |
|
1647 |
// loop over registered post types, and query!
|
1641 |
* @param array | $excluded_post_types | The array of default excluded post types
|
1642 |
* @return array| $excluded_post_types | The array of user-defined excluded post types
|
1643 |
*/
|
1644 |
+
$excluded_post_types = array( 'attachment' , 'revision' , 'nav_menu_item', 'shop_order', 'shop_order_refund', 'custom_css', 'customize_changeset', 'forum', 'topic', 'reply' );
|
1645 |
$excluded_post_types = apply_filters( 'yikes-mailchimp-excluded-redirect-post-types', $excluded_post_types );
|
1646 |
|
1647 |
// loop over registered post types, and query!
|
admin/partials/dashboard-widgets/class.list-activity-widget.php
CHANGED
@@ -68,7 +68,7 @@ class YIKES_Inc_Easy_MailChimp_Dashboard_Widgets {
|
|
68 |
// Get our list data!
|
69 |
$list_data = yikes_get_mc_api_manager()->get_list_handler()->get_lists();
|
70 |
|
71 |
-
if (
|
72 |
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
73 |
$error_logging->maybe_write_to_log( $list_data['error'], __( "Get Account Lists", 'yikes-inc-easy-mailchimp-extender' ), "Dashboard Activity Widget" );
|
74 |
}
|
68 |
// Get our list data!
|
69 |
$list_data = yikes_get_mc_api_manager()->get_list_handler()->get_lists();
|
70 |
|
71 |
+
if ( is_wp_error( $list_data ) ) {
|
72 |
$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
|
73 |
$error_logging->maybe_write_to_log( $list_data['error'], __( "Get Account Lists", 'yikes-inc-easy-mailchimp-extender' ), "Dashboard Activity Widget" );
|
74 |
}
|
public/classes/checkbox-integrations.php
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
return false;
|
53 |
}
|
54 |
|
55 |
-
return $this->is_user_subscribed( $email, $checkbox_options[ $type ]['associated-list'] );
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -62,10 +62,11 @@
|
|
62 |
*
|
63 |
* @param string $email The email address to check.
|
64 |
* @param string $list_id The list ID to check.
|
|
|
65 |
*
|
66 |
* @return bool Whether the email is subscribed to the list.
|
67 |
*/
|
68 |
-
public function is_user_subscribed( $email, $list_id ) {
|
69 |
$email_hash = md5( $email );
|
70 |
|
71 |
// Check the API to see the status
|
@@ -90,7 +91,9 @@
|
|
90 |
}
|
91 |
|
92 |
// Look at the status from the API
|
93 |
-
|
|
|
|
|
94 |
}
|
95 |
|
96 |
/**
|
52 |
return false;
|
53 |
}
|
54 |
|
55 |
+
return $this->is_user_subscribed( $email, $checkbox_options[ $type ]['associated-list'], $type );
|
56 |
}
|
57 |
|
58 |
/**
|
62 |
*
|
63 |
* @param string $email The email address to check.
|
64 |
* @param string $list_id The list ID to check.
|
65 |
+
* @param string $type The integration type
|
66 |
*
|
67 |
* @return bool Whether the email is subscribed to the list.
|
68 |
*/
|
69 |
+
public function is_user_subscribed( $email, $list_id, $type ) {
|
70 |
$email_hash = md5( $email );
|
71 |
|
72 |
// Check the API to see the status
|
91 |
}
|
92 |
|
93 |
// Look at the status from the API
|
94 |
+
$subscribed = 'subscribed' == $response['status'] ? true : false;
|
95 |
+
|
96 |
+
return apply_filters( 'yikes-mailchimp-integration-is-user-subscribed', $subscribed, $type );
|
97 |
}
|
98 |
|
99 |
/**
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: yikesinc, eherman24, liljimmi, hiwhatsup, JPry, yikesitskevin
|
|
3 |
Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
|
4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 6.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -243,6 +243,8 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
243 |
* 6.3.19:
|
244 |
* `yikes-mailchimp-save-form-filter - Filter all of a form's data before it gets saved. @params: $form_updates, $form_id
|
245 |
* `yikes-mailchimp-datepicker-options` - Filter all of the options for the jQuery datepicker. @params: $datepicker_options, $form_id
|
|
|
|
|
246 |
|
247 |
**Actions**
|
248 |
|
@@ -266,6 +268,11 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
266 |
|
267 |
== Changelog ==
|
268 |
|
|
|
|
|
|
|
|
|
|
|
269 |
= Easy Forms for MailChimp 6.3.19 - May 16th, 2017 =
|
270 |
* Fixed a bug where hidden form fields were being counted as visible.
|
271 |
* Added a new filter - yikes-mailchimp-save-form-filter - that allows you to filter all of a form's data before it gets saved.
|
3 |
Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
|
4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 6.3.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
243 |
* 6.3.19:
|
244 |
* `yikes-mailchimp-save-form-filter - Filter all of a form's data before it gets saved. @params: $form_updates, $form_id
|
245 |
* `yikes-mailchimp-datepicker-options` - Filter all of the options for the jQuery datepicker. @params: $datepicker_options, $form_id
|
246 |
+
* 6.3.20:
|
247 |
+
* `yikes-mailchimp-integration-is-user-subscribed` - Override the integration checkbox for already subscribed users. @params: $subscribed, $integration_type.
|
248 |
|
249 |
**Actions**
|
250 |
|
268 |
|
269 |
== Changelog ==
|
270 |
|
271 |
+
= Easy Forms for MailChimp 6.3.20 - May 31st, 2017 =
|
272 |
+
* Added a filter - `yikes-mailchimp-integration-is-user-subscribed` - for the integration checkbox. You can override whether the checkbox will display for already subscribed users (by default, the checkbox will not display).
|
273 |
+
* Updated the way we're logging errors for the homepage dashboard widgets - an error should no longer break your dashboard!
|
274 |
+
* Added some default excluded post types for our post query on the form builder (CPTS are forum, topic, and reply). This should help people who use bbPress and are experiencing timeout issues. (These can be filtered with the `yikes-mailchimp-excluded-redirect-post-types`).
|
275 |
+
|
276 |
= Easy Forms for MailChimp 6.3.19 - May 16th, 2017 =
|
277 |
* Fixed a bug where hidden form fields were being counted as visible.
|
278 |
* Added a new filter - yikes-mailchimp-save-form-filter - that allows you to filter all of a form's data before it gets saved.
|
yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Easy Forms for MailChimp
|
4 |
* Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
|
5 |
* Description: The ultimate MailChimp WordPress plugin. Easily build <strong>unlimited forms for your MailChimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">MailChimp API key</a>.
|
6 |
-
* Version: 6.3.
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|
@@ -42,7 +42,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
42 |
* @since 6.1.3
|
43 |
*/
|
44 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
45 |
-
define( 'YIKES_MC_VERSION' , '6.3.
|
46 |
}
|
47 |
|
48 |
/**
|
3 |
* Plugin Name: Easy Forms for MailChimp
|
4 |
* Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
|
5 |
* Description: The ultimate MailChimp WordPress plugin. Easily build <strong>unlimited forms for your MailChimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">MailChimp API key</a>.
|
6 |
+
* Version: 6.3.20
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|
42 |
* @since 6.1.3
|
43 |
*/
|
44 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
45 |
+
define( 'YIKES_MC_VERSION' , '6.3.20' );
|
46 |
}
|
47 |
|
48 |
/**
|