Plugin Directory

Changeset 2115503


Ignore:
Timestamp:
07/01/2019 01:39:14 PM (7 years ago)
Author:
ehsantikweb
Message:

Used MailPoet API to unsubscribe user, tagging 1.3.11

Location:
add-on-contact-form-7-mailpoet
Files:
4 edited
12 copied

Legend:

Unmodified
Added
Removed
  • add-on-contact-form-7-mailpoet/trunk/add-on-contact-form-7-mailpoet.php

    r2103858 r2115503  
    33 * Plugin Name:       Add-on Contact Form 7 - Mailpoet 3
    44 * Description:       Add a MailPoet 3 signup field to your Contact Form 7 forms.
    5  * Version:           1.3.11
     5 * Version:           1.3.12
    66 * Author:            Tikweb
    77 * Author URI:        http://www.tikweb.dk/
  • add-on-contact-form-7-mailpoet/trunk/changelog.txt

    r2103858 r2115503  
    11== Changelog ==
     2
     3= 1.3.12 – 2019-07-01 =
     4* Used MailPoet API to unsubscribe user
    25
    36= 1.3.11 – 2019-06-10 =
  • add-on-contact-form-7-mailpoet/trunk/includes/class-mailpoet-cf7-submit-form.php

    r2103858 r2115503  
    258258
    259259                    if ( $subscriber !== false ) {
    260 
    261                         $subscriber->status = 'unsubscribed';
    262                         $subscriber->save();
     260                        try {
     261                            $subscriber = \MailPoet\API\API::MP('v1')->unsubscribeFromList($subscriber, \MailPoet\API\API::MP('v1')->getLists());
     262                        } catch(Exception $exception) {
     263                            // return $exception->getMessage();
     264                        }
    263265
    264266                        return true;
  • add-on-contact-form-7-mailpoet/trunk/readme.txt

    r2103858 r2115503  
    44Donate link: http://www.tikweb.dk/donate/
    55Requires at least: 4.6
    6 Tested up to: 5.2.1
     6Tested up to: 5.2.2
    77Requires PHP: 5.2
    8 Stable tag: 1.3.11
     8Stable tag: 1.3.12
    99
    1010Add a MailPoet 3 signup field to your Contact Form 7 forms.
Note: See TracChangeset for help on using the changeset viewer.