'Wordpress - update/publish a post with client side API call
Here is what I need...
- In backend of WP, user hits either update or publish to save post
- Before post is saved, client side js (has to be js) calls a web API for some data
- API async call returns data
- Data is stored in custom field
- Post is then saved
I've got all the pieces, just not sure how to make timing work...what WP event to hook into, how to stop post update, how to wait for response from API, then restart post update.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
