Add Abandon User Email To Mailchimp
-
Hi,
We are planning to integrate a new feature which is to add the abandon checkout users email to our mailchimp list which we maintain. For that we are using the web hook where we have added a URL as shown below. We are assuming that once the user abandon the checkout your plugin will post data on that added URL which is below.
https://takiwatches.com/?process-webhook=1
Can you please tell us how we can get posted data. Should we use wp_remote_get function any help will be greatly appreciated. Our code same is as follows.
function process_abandon_webhook(){ if( isset( $_GET['process-webhook'] ) && $_GET['process-webhook'] == 1 ) { // do some stuff get checkout data and add email to mailchimp. } } add_action( 'init', 'process_abandon_webhook');
Looking forward to your response.
Kind Regards,
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Add Abandon User Email To Mailchimp’ is closed to new replies.