mc4wp_get_api

Gets the MailChimp for WP API class and injects it with the API key.

Description

(MC4WP_API) mc4wp_get_api(); 

Returns (MC4WP_API)


Usage

  1. if ( !function_exists( 'mc4wp_get_api' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'mailchimp-for-wordpress-lite/includes/functions/general.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = mc4wp_get_api(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/functions/general.php  
  1. function mc4wp_get_api() { 
  2. return MC4WP_Lite::instance()->get_api();