How to send a webhook with a post request?
-
I have read all possible documentation and I got lost in what’s deprecated and what’s not. Anyway, I tried all options and none of them worked:
$woocommerce->post(..);
– Fatal error, unknown method post
$woocommerce->webhooks->create($data);
– Call to a member function create() on null
$webhook->new WC_Webhook();
, then setting all info and at the end$webhook->save();
– doesn’t work tooMaybe I should try with the regular
wp_remote_request
but I couldn’t find any info on how to connect it with the hooks.Any help would be appreciated. Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to send a webhook with a post request?’ is closed to new replies.