# give/4.17.0/src/Donations/resources/common/getDonationEmbeds.ts

GiveWP – Donation Plugin and Fundraising Platform, version 4.17.0. 14 lines.

- Page: https://pluginprobe.com/plugins/give/4.17.0/code/src/Donations/resources/common/getDonationEmbeds.ts
- Raw: https://pluginprobe.com/plugins/give/4.17.0/raw/src/Donations/resources/common/getDonationEmbeds.ts
- Modified: 2025-11-05T14:00:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.17.0/code/src/Donations/resources/common/getDonationEmbeds.ts#L10-L20`.

```typescript

import {Donation} from '../admin/components/types';

/**
 * @since 4.13.0
 */
export default function getDonationEmbeds(donation: Donation) {
    return {
        campaign: donation?._embedded?.['givewp:campaign']?.[0],
        donor: donation?._embedded?.['givewp:donor']?.[0],
        form: donation?._embedded?.['givewp:form']?.[0],
    };
}

```
