Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_mailchimp_extension_data()protected staticWC 1.0

Get MailChimp extension data.

{} It's a method of the class: InstalledExtensions{}

No Hooks.

Return

Array|true|false.

Usage

$result = InstalledExtensions::get_mailchimp_extension_data();

Code of InstalledExtensions::get_mailchimp_extension_data() WC 7.1.0

protected static function get_mailchimp_extension_data() {
	$slug = 'mailchimp-for-woocommerce';

	if ( ! PluginsHelper::is_plugin_installed( $slug ) ) {
		return false;
	}

	$data         = self::get_extension_base_data( $slug );
	$data['icon'] = WC_ADMIN_IMAGES_FOLDER_URL . '/marketing/mailchimp.svg';

	if ( 'activated' === $data['status'] && function_exists( 'mailchimp_is_configured' ) ) {
		$data['docsUrl']     = 'https://mailchimp.com/help/connect-or-disconnect-mailchimp-for-woocommerce/';
		$data['settingsUrl'] = admin_url( 'admin.php?page=mailchimp-woocommerce' );

		if ( mailchimp_is_configured() ) {
			$data['status'] = 'configured';
		}
	}

	return $data;
}