admin
11 months ago
components
11 months ago
hooks
11 months ago
entity.ts
11 months ago
index.tsx
1 year ago
types.ts
11 months ago
utils.ts
11 months ago
entity.ts
17 lines
| 1 | import {__} from '@wordpress/i18n'; |
| 2 | import {dispatch} from '@wordpress/data'; |
| 3 | import {store as coreStore} from '@wordpress/core-data'; |
| 4 | |
| 5 | //@ts-ignore |
| 6 | dispatch(coreStore).addEntities([ |
| 7 | { |
| 8 | name: 'donation', |
| 9 | kind: 'givewp', |
| 10 | baseURL: '/givewp/v3/donations', |
| 11 | baseURLParams: {includeSensitiveData: true, anonymousDonations: 'include'}, |
| 12 | plural: 'donations', |
| 13 | label: __('Donation', 'give'), |
| 14 | supportsPagination: true, |
| 15 | }, |
| 16 | ]); |
| 17 |