Get and resubscribe webhooks

This commit is contained in:
inpsyde-maticluznar 2024-12-18 07:00:47 +01:00
parent 484ecc17d7
commit 08f5b4fba5
No known key found for this signature in database
GPG key ID: D005973F231309F6
13 changed files with 113 additions and 167 deletions

View file

@ -134,6 +134,11 @@ export const setClientSecret = ( clientSecret ) => ( {
payload: { clientSecret },
} );
export const setWebhooks = ( webhooks ) => ( {
type: ACTION_TYPES.SET_PERSISTENT,
payload: { webhooks },
} );
/**
* Side effect. Saves the persistent details to the WP database.
*