Plugin Directory

Changeset 2104798


Ignore:
Timestamp:
06/12/2019 02:37:43 PM (7 years ago)
Author:
benshadle
Message:

autoload third party classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpmerchant/trunk/public/class-wpmerchant-public.php

    r1713912 r2104798  
    756756            // require all vendor libraries with this call
    757757            // need this because if you only include mailchimp the other required libraries won't be involved
    758             //require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php';
    759             require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/drewm/mailchimp-api/src/MailChimp.php';
     758            require(plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php');
     759
     760            //require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/drewm/mailchimp-api/src/MailChimp.php';
    760761       
    761762            $EmailAPI = new \DrewM\MailChimp\MailChimp($email_list_processor_config['apiKey']);
     
    958959       
    959960        // require all vendor libraries with this call
    960         ////require_once(plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php');
     961        require(plugin_dir_path( dirname(__FILE__) ) . 'vendor/autoload.php');
    961962       
    962963        //If THERE ARE MULTIPLE PAYMENT PROCESSORS/Email Providers REQUIRE THESE FILES LIKE BELOW
    963         if($payment_processor == 'stripe'){
     964        /*if($payment_processor == 'stripe'){
    964965            require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/stripe/stripe-php/init.php';
    965966        }
    966967        if($email_list_processor == 'mailchimp'){
    967968            require_once plugin_dir_path( dirname(__FILE__) ) . 'vendor/drewm/mailchimp-api/src/MailChimp.php';
    968         }
     969        }*/
    969970       
    970971        // Created WPL Payments table - in the activator file
Note: See TracChangeset for help on using the changeset viewer.