MailerLite Webhooks

Overview

Using webhooks with MailerLite you can create new users on your WordPress site when subscribers are added to a certain group, or automatically update existing users’ meta data and groups when changes happen in MailerLite.

Having trouble receiving webhooks? Check out our troubleshooting guide.

Getting Started

The “update” method is very straightforward: check the checkbox next to Update Trigger, and any subscriber updates in MailerLite will automatically be synced back to WordPress.

To automatically add MailerLite subscribers as WordPress users, first create a group that designates site members. Then navigate to the Webhooks section on the General settings tab of the WP Fusion settings, and select this group from the dropdown. Now, whenever a subscriber is added to this group, they will automatically be imported as a new WordPress user.

The import group method will update a user if an existing user already exists. It will not create a duplicate user.

To update a user’s tags

To update an existing WordPress user’s tags from the contact record, the URL for the webhook should look like the following:

http://mydomain.com/?wpf_action=update_tags&access_key=YOURACCESSKEY

To update a user’s tags and meta data

To update a user’s tags and pull any new meta data from MailerLite for that contact, the URL for the webhook should look like the following:

http://mydomain.com/?wpf_action=update&access_key=YOURACCESSKEY

Note: By default, user accounts will be created with their email address as the username and a randomly generated password. However, if you have created a custom username field and password field in MailerLite, and enabled these fields in WP Fusion for sync with user_login and user_pass on your website, the new users will be given the usernames and passwords stored in their MailerLite contact record.

User passwords

New user accounts will be created with an automatically generated password. If you’d like to use this password in your email marketing, you can send the password back to MailerLite after it has been generated.

In the Webhooks section of the General settings tab, check the box for Return Password, and select a field in MailerLite where the password should be stored.

After a new user is created, their automatically generated password will now be saved back to their contact record, and you can use a merge field to include it in an email. The username will be the contact’s email address.