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