Version Description
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Easy Forms for MailChimp |
Version | 6.3.26 |
Comparing to | |
See all releases |
Code changes from version 6.3.25 to 6.3.26
public/classes/checkbox-integrations/class.woocommerce_checkout_form-checkbox.php
CHANGED
@@ -55,7 +55,17 @@ class Yikes_Easy_MC_WooCommerce_Checkbox_Class extends Yikes_Easy_MC_Checkbox_In
|
|
55 |
} else {
|
56 |
$precheck = '0';
|
57 |
}
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
'id' => 'yikes_mailchimp_checkbox_'.$this->type,
|
60 |
'type' => 'checkbox',
|
61 |
'class' => apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-classes', array( 'form-row-wide' ) ),
|
55 |
} else {
|
56 |
$precheck = '0';
|
57 |
}
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Filter where the checkbox goes.
|
61 |
+
*
|
62 |
+
* See this WooCo article for possible values: https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
|
63 |
+
*
|
64 |
+
* @param string | Which set of fields the checkbox should go into
|
65 |
+
*/
|
66 |
+
$field_placement = apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-placement', 'billing' );
|
67 |
+
|
68 |
+
$fields[ $field_placement ][1] = array(
|
69 |
'id' => 'yikes_mailchimp_checkbox_'.$this->type,
|
70 |
'type' => 'checkbox',
|
71 |
'class' => apply_filters( 'yikes-mailchimp-wooco-integration-checkbox-classes', array( 'form-row-wide' ) ),
|
public/classes/process/class.process_form_submission_handler.php
CHANGED
@@ -361,6 +361,9 @@ class Yikes_Inc_Easy_MailChimp_Extender_Process_Submission_Handler {
|
|
361 |
*/
|
362 |
public function get_submitted_merge_values( $data, $form_fields ) {
|
363 |
|
|
|
|
|
|
|
364 |
// loop to push variables to our array
|
365 |
foreach ( $data as $merge_tag => $value ) {
|
366 |
|
361 |
*/
|
362 |
public function get_submitted_merge_values( $data, $form_fields ) {
|
363 |
|
364 |
+
// Array to return
|
365 |
+
$merge_variables = array();
|
366 |
+
|
367 |
// loop to push variables to our array
|
368 |
foreach ( $data as $merge_tag => $value ) {
|
369 |
|
public/partials/shortcodes/process_form_shortcode.php
CHANGED
@@ -554,6 +554,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
554 |
// pass our default value through our filter to parse dynamic data by tag (used solely for 'text' type)
|
555 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
556 |
$default_value = apply_filters( 'yikes-mailchimp-process-default-tag', $default_value );
|
|
|
557 |
|
558 |
?>
|
559 |
<label for="<?php echo esc_attr( $field_id_string ); ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
@@ -581,6 +582,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
581 |
case 'url':
|
582 |
case 'imageurl':
|
583 |
$default_value = ( isset( $field['default'] ) ) ? $field['default'] : '';
|
|
|
584 |
?>
|
585 |
|
586 |
<script type="text/javascript">
|
@@ -619,6 +621,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
619 |
|
620 |
case 'phone':
|
621 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
|
|
622 |
$phone_format = $field['phone_format'];
|
623 |
?>
|
624 |
<script type="text/javascript">
|
@@ -655,6 +658,7 @@ function process_mailchimp_shortcode( $atts ) {
|
|
655 |
|
656 |
case 'zip':
|
657 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
|
|
658 |
|
659 |
?>
|
660 |
<label for="<?php echo esc_attr( $field_id_string ); ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
@@ -892,6 +896,8 @@ function process_mailchimp_shortcode( $atts ) {
|
|
892 |
}
|
893 |
|
894 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
|
|
|
|
895 |
// store empty number for looping
|
896 |
$x = 0;
|
897 |
|
554 |
// pass our default value through our filter to parse dynamic data by tag (used solely for 'text' type)
|
555 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
556 |
$default_value = apply_filters( 'yikes-mailchimp-process-default-tag', $default_value );
|
557 |
+
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
558 |
|
559 |
?>
|
560 |
<label for="<?php echo esc_attr( $field_id_string ); ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
582 |
case 'url':
|
583 |
case 'imageurl':
|
584 |
$default_value = ( isset( $field['default'] ) ) ? $field['default'] : '';
|
585 |
+
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
586 |
?>
|
587 |
|
588 |
<script type="text/javascript">
|
621 |
|
622 |
case 'phone':
|
623 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
624 |
+
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
625 |
$phone_format = $field['phone_format'];
|
626 |
?>
|
627 |
<script type="text/javascript">
|
658 |
|
659 |
case 'zip':
|
660 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
661 |
+
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
662 |
|
663 |
?>
|
664 |
<label for="<?php echo esc_attr( $field_id_string ); ?>" <?php echo implode( ' ' , $label_array ); ?>>
|
896 |
}
|
897 |
|
898 |
$default_value = ( isset( $field['default'] ) ? esc_attr( $field['default'] ) : '' );
|
899 |
+
$default_value = apply_filters( 'yikes-mailchimp-' . $field['merge'] . '-default-value', $default_value, $field, $form_id );
|
900 |
+
|
901 |
// store empty number for looping
|
902 |
$x = 0;
|
903 |
|
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.8.
|
7 |
-
Stable tag: 6.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -245,6 +245,9 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
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,6 +271,9 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
268 |
|
269 |
== Changelog ==
|
270 |
|
|
|
|
|
|
|
271 |
= Easy Forms for MailChimp 6.3.25 - September 11th, 2017 =
|
272 |
* Fixing some HTML validation/markup errors related to labels. Thanks to @upekshapriya for bringing these to our attention.
|
273 |
|
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.2
|
7 |
+
Stable tag: 6.3.26
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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 |
+
* 6.3.26:
|
249 |
+
* `yikes-mailchimp-{$merge_tag}-default-value` - Set the default value for a field based on its merge tag. @params: $default_value, $field, $form_id
|
250 |
+
* `yikes-mailchimp-wooco-integration-checkbox-placement` - Filter where the subscribe checkbox is placed for the WooCommerce integration. @params: $placement
|
251 |
|
252 |
**Actions**
|
253 |
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= Easy Forms for MailChimp 6.3.26 - October 4th, 2017 =
|
275 |
+
* Added two new filters: `yikes-mailchimp-{$merge_tag}-default-value` and `yikes-mailchimp-wooco-integration-checkbox-placement`.
|
276 |
+
|
277 |
= Easy Forms for MailChimp 6.3.25 - September 11th, 2017 =
|
278 |
* Fixing some HTML validation/markup errors related to labels. Thanks to @upekshapriya for bringing these to our attention.
|
279 |
|
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+
|
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.26
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|