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{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$result = InstalledExtensions::get_data();

Код InstalledExtensions::get_data() WC 6.5.1

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

	$automatewoo = self::get_automatewoo_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();
	$hubspot     = self::get_hubspot_extension_data();
	$amazon_ebay = self::get_amazon_ebay_extension_data();
	$mailpoet    = self::get_mailpoet_extension_data();

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

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

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

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

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

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

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

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

	return $data;
}