Warning: This function has been deprecated.

mc4wp_get_api ()

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

Return: (MC4WP_API)

Source file: functions.php

View source

Used by


function mc4wp_get_api() {
	static $instance;

	if( $instance instanceof MC4WP_API ) {
		return $instance;

	$opts = mc4wp_get_options();
	$instance = new MC4WP_API( $opts['api_key'] );
	return $instance;


  • Since: WordPress 1.0

User Contributed Notes

You must log in before being able to contribute a note.