Mailchimp_Helpers::get_mailchimp_client()

Get Mailchimp Client object

Contents


Return Return

(false|object)


Source Source

File: src/integrations/mailchimp/helpers/mailchimp-helpers.php

	public function get_mailchimp_client() {
		$client = get_option( '_uncannyowl_mailchimp_settings', array() );
		if ( empty( $client ) || ! isset( $client['access_token'] ) ) {
			return false;
		}
		return (object) $client;
	}