admin
11 months ago
components
1 year ago
hooks
1 year ago
admin-donors.tsx
1 year ago
entity.ts
11 months 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: 'donor', |
| 9 | kind: 'givewp', |
| 10 | baseURL: '/givewp/v3/donors', |
| 11 | baseURLParams: {includeSensitiveData: true, anonymousDonors: 'include'}, |
| 12 | plural: 'donors', |
| 13 | label: __('Donor', 'give'), |
| 14 | supportsPagination: true, |
| 15 | } |
| 16 | ]); |
| 17 |