Call a custom hook
-
Hello,
I’m trying to send the form data as body parameters to an API, create a new post and insert the data into the said post.
Could you please provide details on how can I implement this? The form submit flow should be something among the lines: Insert post -> Redirect to new post -> Call custom hook and populate the newly created post with the API’s response.
Any insight will be highly appreciated!
With the best wishes,
Dragos
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Call a custom hook’ is closed to new replies.