Skip to content

Commit

Permalink
Added new ss_wc_mailchimp_subscribe_customer
Browse files Browse the repository at this point in the history
  • Loading branch information
anderly committed Mar 27, 2021
1 parent 00b756a commit 9030a8d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions includes/class-ss-wc-mailchimp-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ public function maybe_subscribe( $order_id ) {
// Allow hooking into subscription options.
$options = apply_filters( 'ss_wc_mailchimp_subscribe_options', $subscribe_options, $order_id );

/**
* Allow overriding whether to subscribe the customer
* @since 2.4.1
*/
$subscribe_customer = apply_filters( 'ss_wc_mailchimp_subscribe_customer', $subscribe_customer, $subscribe_options, $order_id );

// Extract options into variables.
extract( $options );

Expand Down
2 changes: 1 addition & 1 deletion includes/class-ss-wc-mailchimp-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class SS_WC_MailChimp_Plugin {
*
* @var string
*/
private static $version = '2.4.0';
private static $version = '2.4.1';

/**
* Plugin singleton instance
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires at least: 4.7.0
Tested up to: 5.7.0
WC tested up to: 5.1.0
Requires PHP: 5.6
Stable tag: 2.4.0
Stable tag: 2.4.1
License: GPLv3

Simple and flexible Mailchimp integration for WooCommerce.
Expand Down Expand Up @@ -119,6 +119,9 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie

== Changelog ==

#### 2.4.1 - March 27, 2021
- Added new `ss_wc_mailchimp_subscribe_customer` hook to allow easier override of whether or not to subscribe the customer.

#### 2.4.0 - March 24, 2021
- Tested up to WordPress 5.7
- Tested up to WooCommerce 5.1
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: WP WooCommerce Mailchimp provides simple and flexible Mailchimp integration for WooCommerce.
* Author: Saint Systems
* Author URI: https://www.saintsystems.com
* Version: 2.4.0
* Version: 2.4.1
* WC tested up to: 5.1.0
* Text Domain: woocommerce-mailchimp
* Domain Path: languages
Expand Down

0 comments on commit 9030a8d

Please sign in to comment.