Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_jetpack_crm_extension_data()protected staticWC 1.0

Get Jetpack CRM for WooCommerce extension data.

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

Хуков нет.

Возвращает

Массив|true|false.

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

$result = InstalledExtensions::get_jetpack_crm_extension_data();

Код InstalledExtensions::get_jetpack_crm_extension_data() WC 7.1.1

protected static function get_jetpack_crm_extension_data() {
	$slug = 'zero-bs-crm';

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

	$data         = self::get_extension_base_data( $slug );
	$data['icon'] = WC_ADMIN_IMAGES_FOLDER_URL . '/marketing/jetpack-crm.png';

	if ( 'activated' === $data['status'] ) {
		$data['status']      = 'configured';
		$data['settingsUrl'] = admin_url( 'admin.php?page=zerobscrm-plugin-settings' );
		$data['docsUrl']     = 'https://kb.jetpackcrm.com/';
		$data['supportUrl']  = 'https://kb.jetpackcrm.com/crm-support/';
	}

	return $data;
}