/** * Constructor * * @access public * @return void */ public function __construct() { $this->id = 'mailchimp'; $this->namespace = 'ss_wc_' . $this->id; $this->label = __('MailChimp', 'woocommerce-mailchimp'); $this->sswcmc = SSWCMC(); $this->register_hooks(); }
/** * API Instance Singleton * @return Object */ public function mailchimp($api_key = null) { $sswcmc = SSWCMC(); return $sswcmc->mailchimp($api_key); }
* Author: Saint Systems * Author URI: https://www.saintsystems.com * Version: 2.0.19 * Text Domain: woocommerce-mailchimp * Domain Path: languages * * Copyright: � 2016 Saint Systems * License: GNU General Public License v3.0 * License URI: http://www.gnu.org/licenses/gpl-3.0.html */ /** If this file is called directly, abort. */ if (!defined('ABSPATH')) { die; } /** Constants */ /** * Full path to the WooCommerce MailChimp file * @define "SS_WC_MAILCHIMP_FILE" "./woocommmerce-mailchimp.php" */ define('SS_WC_MAILCHIMP_FILE', __FILE__); /** * The main plugin class (SS_WC_MailChimp_Plugin) */ require_once 'includes/class-ss-wc-mailchimp-plugin.php'; function SSWCMC() { return SS_WC_MailChimp_Plugin::get_instance(); } // Get WooCommerce Mailchimp Running. SSWCMC();