Skip to content

Commit

Permalink
Merge pull request #3 from steve-brett/patch-1
Browse files Browse the repository at this point in the history
Update ultimate-mailchimp-plugin.php
  • Loading branch information
daviddarke authored Jul 31, 2020
2 parents f7e26c4 + 0f81e3c commit 9090ca9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ultimate-mailchimp-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: atomicsmash.co.uk
* Text Domain: testing
* Domain Path: /languages
* Version: 0.0.1
* Version: 0.0.4
*
* @package Testing
*/
Expand Down Expand Up @@ -245,11 +245,8 @@ public function add_woocommerce_checkout_custom_fields( $checkout ) {
//ASTODO add logic to detect if the user is current signed up to the newsletter

if ( defined('ULTIMATE_MAILCHIMP_GDPR_FIELDS') && ULTIMATE_MAILCHIMP_GDPR_FIELDS == true ) {
$permission_fields = get_option( 'um_communication_permission_fields' );

if( $permission_fields == "" ){
$permission_fields = $this->update_communication_preference_options();
}
$this->update_communication_preference_options();
$permission_fields = get_option('um_communication_permission_fields');
}else{
$permission_fields = "";
}
Expand Down

0 comments on commit 9090ca9

Please sign in to comment.