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
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_created_subscription_datadmem_zapier_cancelled_subscription_datadmem_zapier_refunded_subscription_data
Each filter receives $data and $subscription_id. Return the modified $data array.
Code example
functions.php or plugin
add_filter( 'dmem_zapier_created_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 (created, cancelled, or refunded).
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.