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