Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_amazon_ebay_extension_data()protected staticWC 1.0

Get Amazon / Ebay extension data.

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

Хуков нет.

Возвращает

Массив|true|false.

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

$result = InstalledExtensions::get_amazon_ebay_extension_data();

Код InstalledExtensions::get_amazon_ebay_extension_data() WC 6.9.4

protected static function get_amazon_ebay_extension_data() {
	$slug = 'woocommerce-amazon-ebay-integration';

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

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

	if ( 'activated' === $data['status'] && class_exists( '\CodistoConnect' ) ) {

		$codisto_merchantid = get_option( 'codisto_merchantid' );

		// Use same check as codisto admin tabs.
		if ( is_numeric( $codisto_merchantid ) ) {
			$data['status'] = 'configured';
		}

		$data['settingsUrl'] = admin_url( 'admin.php?page=codisto-settings' );
		$data['docsUrl']     = 'https://woocommerce.com/document/multichannel-for-woocommerce-google-amazon-ebay-walmart-integration/?utm_medium=product';
	}

	return $data;
}