Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_data()public staticWC 1.0

Gets an array of plugin data for the "Installed marketing extensions" card.

Valid extensions statuses are: installed, activated, configured

Метод класса: InstalledExtensions{}

No Hooks.

Return

null. Nothing.

Usage

$result = InstalledExtensions::get_data();

Code of InstalledExtensions::get_data() WC 7.1.0

public static function get_data() {
	$data = [];

	$automatewoo   = self::get_automatewoo_extension_data();
	$aw_referral   = self::get_aw_referral_extension_data();
	$aw_birthdays  = self::get_aw_birthdays_extension_data();
	$mailchimp     = self::get_mailchimp_extension_data();
	$facebook      = self::get_facebook_extension_data();
	$pinterest     = self::get_pinterest_extension_data();
	$google        = self::get_google_extension_data();
	$amazon_ebay   = self::get_amazon_ebay_extension_data();
	$mailpoet      = self::get_mailpoet_extension_data();
	$creative_mail = self::get_creative_mail_extension_data();
	$tiktok        = self::get_tiktok_extension_data();
	$jetpack_crm   = self::get_jetpack_crm_extension_data();
	$zapier        = self::get_zapier_extension_data();
	$salesforce    = self::get_salesforce_extension_data();
	$vimeo         = self::get_vimeo_extension_data();
	$trustpilot    = self::get_trustpilot_extension_data();

	if ( $automatewoo ) {
		$data[] = $automatewoo;
	}

	if ( $aw_referral ) {
		$data[] = $aw_referral;
	}

	if ( $aw_birthdays ) {
		$data[] = $aw_birthdays;
	}

	if ( $mailchimp ) {
		$data[] = $mailchimp;
	}

	if ( $facebook ) {
		$data[] = $facebook;
	}

	if ( $pinterest ) {
		$data[] = $pinterest;
	}

	if ( $google ) {
		$data[] = $google;
	}

	if ( $amazon_ebay ) {
		$data[] = $amazon_ebay;
	}

	if ( $mailpoet ) {
		$data[] = $mailpoet;
	}

	if ( $creative_mail ) {
		$data[] = $creative_mail;
	}

	if ( $tiktok ) {
		$data[] = $tiktok;
	}

	if ( $jetpack_crm ) {
		$data[] = $jetpack_crm;
	}

	if ( $zapier ) {
		$data[] = $zapier;
	}

	if ( $salesforce ) {
		$data[] = $salesforce;
	}

	if ( $vimeo ) {
		$data[] = $vimeo;
	}

	if ( $trustpilot ) {
		$data[] = $trustpilot;
	}

	return $data;
}