Hey @chiragagarwal – thank you for your answer.
I got your point. To make this work, you have a couple of possibilities. I will explain the, down below so you can choose what suits you the best.
1. Using a third-party service like Zapier/Integromat
These apps allow you to map the data as you need it for your endpoint. We offer custom apps for these two services specifically, so feel free to use them as well. The disadvantage of this option: These services are limited in their free version.
2. Use the Data Mapping feature of our Pro version
Our Pro version offers a feature that allows you to manipulate the payload data (JSON) we send out for every trigger. This way, you can make the mapping directly within our plugin.
Here are some links for further details on that:
3. (Advanced): Use the WordPress filter hook
We offer a custom filter hook that allows you to manipulate any data we are going to send out. This way, you can create the mapping very simply within PHP with some few lines of code. Here is the definition of the filter:
$data = apply_filters( 'wpwhpro/admin/webhooks/webhook_data', $data, $response, $webhook, $args, $authentication_data );
4. (Advanced) Use the “Send Data On Custom Action” trigger
This trigger allows you to send your very own data (in your very own format) to your given webhook URL’s. This allows you full flexibility over whatever you send. The disadvantage is that you need to write your own function that fires the trigger whenever a custom post type is updated.
We also have a web-view of our plugin available that helps you to share the details about our plugin easier: https://wp-webhooks.com/
If you have further questions, feel free to ask at any time.
-
This reply was modified 4 years, 10 months ago by
Ironikus.