I’m using WordPress as my headless CMS and trying to set up a build hook to rebuild my site when a page or post or custom post type is created or edited. I’ve created a build hook and added a function to my functions.php file:
As far a I can tell, that hook has only been accessed once in the past week. The access was an HTTP GET - which won’t work. Needs to be an HTTP POST instead. Let me know if you can get a post sent off and a timestamp + timezone and I’ll be happy to revisit!
You can test from the command line as shown in the codeblock in our docs, just above this anchor: