admin
9 months ago
common
9 months ago
components
9 months ago
hooks
10 months ago
admin-subscriptions.tsx
1 year ago
entity.ts
9 months ago
types.ts
10 months ago
utils.ts
10 months ago
entity.ts
21 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { dispatch } from '@wordpress/data'; |
| 3 | import { store as coreStore } from '@wordpress/core-data'; |
| 4 | |
| 5 | /** |
| 6 | * @since 4.10.0 added _embed |
| 7 | * @since 4.8.0 |
| 8 | */ |
| 9 | //@ts-ignore |
| 10 | dispatch(coreStore).addEntities([ |
| 11 | { |
| 12 | name: 'subscription', |
| 13 | kind: 'givewp', |
| 14 | baseURL: '/givewp/v3/subscriptions', |
| 15 | baseURLParams: {_embed: true}, |
| 16 | plural: 'subscriptions', |
| 17 | label: __('Subscription', 'give'), |
| 18 | supportsPagination: true, |
| 19 | }, |
| 20 | ]); |
| 21 |