Integration
Purpose and when to use
Divi Membership’s Zapier integration sends webhooks when subscription events occur so you can automate workflows in Zapier and connected apps. Use it for CRM updates, email sequences, or any app that accepts webhooks.
Setting up webhooks for subscription events
You can configure webhooks for:
- Subscription Created
- Subscription Cancelled
- Subscription Refunded
The refunded webhook is sent when Divi Membership processes a subscription refund and fires its refund lifecycle event. It is not a general Stripe/PayPal feed for refunds performed outside the plugin, so test the exact administrator or member workflow you use.
How to add webhook URLs
- Go to Divi Engine → Divi Membership → Integrations.
- Find the Zapier section.
- Enter your Zapier webhook URLs in the fields for each subscription action.
- Click Save Changes to enable the webhooks.
Modifying data sent to Zapier
You can change the payload sent to Zapier using these filters:
dmem_zapier_new_subscription_datadmem_zapier_cancelled_subscription_datadmem_zapier_refunded_subscription_data
Each filter receives $data and $subscription_id. Return the modified $data array.
Code example
add_filter( 'dmem_zapier_new_subscription_data', 'my_zapier_created_data', 10, 2 );
function my_zapier_created_data( $data, $subscription_id ) {
$data['custom_field'] = 'Custom Value';
$data['subscription_status'] = 'active';
return $data;
}
Replace the filter name with the relevant one for the event (new, cancelled, or refunded). The subscription ID is the local dmem_subscription post ID.
What's Next
- Developer hooks — Actions and filters for subscription lifecycle and custom logic.
- Subscription management — How subscriptions are created, cancelled, and refunded in the admin.
- Settings — Where to find the Integrations tab and Zapier URLs.