Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_salesforce_extension_data()protected staticWC 1.0

Get Salesforce extension data.

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

No Hooks.

Return

Array|true|false.

Usage

$result = InstalledExtensions::get_salesforce_extension_data();

Code of InstalledExtensions::get_salesforce_extension_data() WC 7.1.0

protected static function get_salesforce_extension_data() {
	$slug = 'integration-with-salesforce';

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

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

	if ( 'activated' === $data['status'] && class_exists( '\Integration_With_Salesforce_Admin' ) ) {
		if ( ! method_exists( '\Integration_With_Salesforce_Admin', 'get_connection_status' ) || \Integration_With_Salesforce_Admin::get_connection_status() ) {
			$data['status'] = 'configured';
		}

		$data['settingsUrl'] = admin_url( 'admin.php?page=integration-with-salesforce' );
		$data['docsUrl']     = 'https://woocommerce.com/document/salesforce-integration/';
		$data['supportUrl']  = 'https://wpswings.com/submit-query/';
	}

	return $data;
}