On-demand Revalidation
gregrickaby opened this issue · 1 comments
gregrickaby commented
The on-demand revalidation in the nextjs-wordpress-plugin
could use some work. When a user clicks "update" it sends several requests back to Vercel, instead of just 1.
I believe this should be as simple as using wp_transition_post_status()
instead of the edit_post
hook.
https://developer.wordpress.org/reference/functions/wp_transition_post_status/
gregrickaby commented
This was fixed, forgot to close.