Plugin Directory

Changeset 2343410


Ignore:
Timestamp:
07/20/2020 11:54:41 AM (6 years ago)
Author:
augustinfotech
Message:

Compatible with WordPress 5.4.2

Location:
responsive-contact-form/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • responsive-contact-form/trunk/ai-responsive-contact-form.php

    r2017602 r2343410  
    397397            $apikey = esc_attr(get_option('ai_me_contactform_api_key'));
    398398            $active_mail_chimp =  get_option('aimclists') ;     
    399             require_once( WP_PLUGIN_DIR . '/responsive-contact-form-mailchimp-extension/admin/includes/AIMCAPI.class.php');     
    400             $storedata = new AIMCAPI($apikey);
     399            require_once( WP_PLUGIN_DIR . '/responsive-contact-form-mailchimp-extension/admin/includes/MailChimp.php');        
     400            $storedata = new MailChimp($apikey);
    401401            if($ai_name != 'User' && $ai_name != '') {
    402402                $ai_merge_vars = array('FNAME'=>$ai_name);
     
    406406            if($active_mail_chimp) {
    407407                foreach($active_mail_chimp as $list_id => $list_val) {         
    408                     $storedata->listSubscribe($list_id, $ai_email, $ai_merge_vars);
     408                   
     409                    $result = $storedata->post("lists/$list_id/members", [
     410                        'email_address' => $ai_email,
     411                        'status'        => 'subscribed',
     412                        'merge_fields'  => $ai_merge_vars
     413                    ]);
    409414                }
    410                 if ($storedata->errorCode) {
    411                     echo $storedata->errorMessage;
     415                if ($storedata->getLastError()) {
     416                    echo $storedata->getLastError();
    412417                }
    413418            }   
  • responsive-contact-form/trunk/readme.txt

    r2332971 r2343410  
    152152* Fixed the issue of textarea focus in the middle.
    153153* Added message from user in database and displayed in admin.
    154 * Compatible in wordpress 5.4.2
     154* Compatible in wordpress 4.0
    155155* Backup languages folder.
     156* Integrated with Mailchinp API version 3
Note: See TracChangeset for help on using the changeset viewer.