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