WordPress Subscriber Sync
Automatically add WordPress users to AcelleMail lists using action hooks and the REST API.
Connect AcelleMail with WordPress to automatically sync subscribers and trigger automations based on user actions.
Add subscribers when they register on your WordPress site:
// functions.php or custom plugin
add_action('user_register', function($user_id) {
$user = get_user_by('id', $user_id);
wp_remote_post('https://your-acellemail.com/api/v1/lists/LIST_UID/subscribers', [
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
],
'body' => json_encode([
'EMAIL' => $user->user_email,
'FIRST_NAME' => $user->first_name,
'LAST_NAME' => $user->last_name,
]),
]);
});
Embed AcelleMail's signup form on your WordPress site:
add_action('woocommerce_thankyou', function($order_id) {
$order = wc_get_order($order_id);
wp_remote_post('https://your-acellemail.com/api/v1/lists/LIST_UID/subscribers', [
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
],
'body' => json_encode([
'EMAIL' => $order->get_billing_email(),
'FIRST_NAME' => $order->get_billing_first_name(),
'LAST_NAME' => $order->get_billing_last_name(),
'tag' => 'woocommerce-customer,purchased',
'ORDER_TOTAL' => $order->get_total(),
]),
]);
});
After integration, set up automations in AcelleMail:
Configure AcelleMail webhooks to update WordPress when subscribers change:
// REST API endpoint in WordPress
add_action('rest_api_init', function() {
register_rest_route('acellemail/v1', '/webhook', [
'methods' => 'POST',
'callback' => function($request) {
$event = $request->get_param('event');
$email = $request->get_param('data')['email'];
if ($event === 'subscriber.removed') {
// Handle unsubscribe in WordPress
}
return new WP_REST_Response('OK', 200);
},
]);
});
Automatically add WordPress users to AcelleMail lists using action hooks and the REST API.
Set up Stripe payments in AcelleMail SaaS mode — API keys, webhook endpoints, and plan synchronization.
Connect AcelleMail to 5,000+ apps via Zapier — set up triggers, actions, and common automation use cases.
Automatically add WordPress users to AcelleMail lists using action hooks and the REST API.
Connect AcelleMail to 5,000+ apps via Zapier — set up triggers, actions, and common automation use cases.
Trigger AcelleMail automations after a WooCommerce order — confirmation, review requests, and upsell sequences.
Set up Stripe payments in AcelleMail SaaS mode — API keys, webhook endpoints, and plan synchronization.
AcelleMail is the self-hosted email marketing platform you control end-to-end.
View Pricing