How do I access post meta data when publishing a new post in Gutenberg?
The solution is to use a different hook which fires after post meta data has been saved by Gutenberg to the WP API. After reading this related discussion on Github and inspecting this code by n7studios, I discovered that rest_after_insert_post is a hook to use. So, the way to reliably check for the existence of … Read more