New Custom Post Type Trigger
-
Hi,
I’m using the free version of WP Webhooks, but struggling to understand the docs. I want to fire a webhook when a new Custom Post Type is added. Do I use the trigger “Send Data On New Post” and if so – how to I choose the CPT I want? Or do I chose the trigger “Send Data On Custom Action”?
I have the url of the webhook, but I just don’t know how or where to fire the trigger. It says “You can fire the trigger wherever you want within your PHP code.” Does that mean I add some code to my functions.php file? And if so, what code do I add? Does it need to be inside a function or do I simply add it to my functions.php file.
Sorry for my basic understanding.
Thanks for your help
Ian
- The topic ‘New Custom Post Type Trigger’ is closed to new replies.