MailerLite is an email marketing platform for building campaigns, automations, and landing pages, with subscribers organized into groups.

This integration subscribes and groups your Paid Memberships Pro members in MailerLite. When a member’s level changes, the plugin automatically updates their groups to match their current membership status.

  • Subscribe members to MailerLite when they join your site.
  • Assign one or more MailerLite groups to each membership level.
  • Remove groups automatically when a member changes, cancels, or expires from a level.
  • Honor your MailerLite double opt-in settings, or subscribe members immediately.
  • Sync subscriber data and groups when a member’s profile is updated.
  • Process updates in the background with Action Scheduler to keep checkout fast.

Installation

You must have the Paid Memberships Pro plugin installed and activated to use this Add On.

  1. Navigate to Memberships > Add Ons in the WordPress admin.
  2. Locate the Add On and click “Install Now“.
    • Or, to install this plugin manually, download the .zip file above.
    • Upload the compressed directory (.zip) via the Plugins > Add New > Upload Plugin screen in the WordPress admin.
  3.  Activate the plugin through the Plugins screen in the WordPress admin.

General Settings

  1. Navigate to Memberships > MailerLite in the WordPress admin.
  2. Enter your API Key. You can find this in your MailerLite account under Integrations > MailerLite API.
  3. Configure the additional settings as needed (see below).
  4. Click Save Changes.

API Key

Your API key connects your MailerLite account to this membership site. In MailerLite, go to Integrations > MailerLite API and generate a new token, then paste it into the API Key field.

The MailerLite Integrations API page showing the API tokens list and the Generate new token button

Sync on Profile Update

Choose what to sync to MailerLite when a user profile is updated in WordPress:

  • Yes, sync subscriber data and groups: Updates the subscriber’s information and recalculates their groups based on current membership levels.
  • Yes, sync subscriber data only: Updates the subscriber’s information (name and email) without modifying groups.
  • No, do not sync anything on profile update: Disables syncing when profiles are updated. Groups are still updated when membership levels change.

Remove Groups When Membership Changes

Controls whether the integration removes groups in MailerLite when they no longer match a member’s current membership level. This keeps your MailerLite groups accurate as members change, cancel, or expire.

  • Yes, remove groups that no longer apply (default): Groups are added when a member gains a level and removed when they lose it.
  • No, never remove groups: Groups are only added, never removed. Use this if you want to preserve a history of membership levels in MailerLite.

Only groups that you assign to membership levels are managed by the integration. Groups added to subscribers through other means (directly in MailerLite, other integrations, and so on) are never removed.

Subscriber Status

Controls how new subscribers are confirmed when they are added to MailerLite:

  • Respect account settings (honor double opt-in) (default): Honors your MailerLite double opt-in configuration. If double opt-in is enabled in MailerLite, members receive a confirmation email before they are subscribed.
  • Always set to Active (bypasses double opt-in): Subscribes members immediately and bypasses double opt-in.

Your double opt-in setting lives in MailerLite under Account settings > Subscribe settings > Double opt-in for API and integrations. When this is on and the integration is set to respect account settings, members must confirm their email before MailerLite marks them active.

The MailerLite Subscribe settings page with the Double opt-in for API and integrations toggle enabled

With double opt-in active, a member who has not yet confirmed appears as Unconfirmed in MailerLite until they click the confirmation link.

A MailerLite subscriber profile showing an Unconfirmed status for a member subscribed via the API

Note: MailerLite cannot reactivate subscribers whose status is bounced, junk, or unsubscribed through the API. Those members must re-subscribe through a MailerLite form or landing page.

Process Updates in the Background

When enabled, subscriber updates and group changes run in the background using Action Scheduler. This can improve performance during checkout, profile updates, and membership changes.

  • Yes, run updates in the background (default): Recommended for most sites, especially those with high traffic or frequent membership changes.
  • No, run updates immediately: Updates are processed synchronously. Use this for debugging or if you need immediate updates in MailerLite.

Debug Logging

When enabled, the integration writes debug details to an access-protected log file to help troubleshoot issues. Once enabled, a link to download the log file appears in the settings.

For most sites, keep debug logging off unless you are actively working through an issue.

How to Assign Groups to a Membership Level

After you save your API key, the Assign Groups section appears with a list of all your membership levels.

  1. Navigate to Memberships > MailerLite in the WordPress admin.
  2. In the Assign Groups section, you will see a list of all your membership levels.
  3. For each level, select one or more groups from the checkbox list. You can assign multiple groups to a single level.
  4. Click Save Changes.

As new members join your site, the selected groups are assigned to that subscriber in your MailerLite account.

Pro Tip: If you have recently added new groups in MailerLite, click the “Click here to refresh groups” link to update the list of available groups.

How Group Management Works

  • When a member gains a level: The groups assigned to that level are added to the subscriber in MailerLite.
  • When a member loses a level: If “Remove Groups When Membership Changes” is enabled, the groups assigned to that level are removed from the subscriber.
  • Multiple levels: If a member has multiple membership levels, they have all groups from all of their active levels.

How to Import Existing Members into MailerLite

This integration does not run an update on all of your existing members. To add existing members to your MailerLite account, prepare and upload a CSV file.

Before you begin, review MailerLite’s documentation on How to Import Subscribers.

Step 1: Export Your Members

  1. Navigate to Memberships > Members.
  2. Export the full members list, or filter it to the members you want to import into MailerLite.

Step 2: Prepare Your CSV

  1. In a spreadsheet program, keep the columns MailerLite needs, at minimum, Email and Name. Remove any columns you do not want to import.
  2. Use the membership_level column to decide which group each member belongs to, then remove it before importing.
  3. Save the file as a .csv.

Step 3: Import into MailerLite

  1. In MailerLite, go to Subscribers and start an import.
  2. Upload your CSV and assign the imported subscribers to the group that matches their membership level.
The MailerLite Subscribers Groups tab listing groups that match Paid Memberships Pro membership levels

Action and Filter Hooks

apply_filters( 'pmpromailerlite_subscriber_data', array $subscriber_data, WP_User $user, array $levels );

Filter the subscriber data before it is sent to MailerLite.

apply_filters( 'pmpromailerlite_controlled_group_ids', array $controlled_group_ids );

Filter which MailerLite group IDs are managed by Paid Memberships Pro. Only groups in this list are removed when a member loses a level.

apply_filters( 'pmpromailerlite_log_file_path', string $log_file_path );

Filter the file path used for the integration debug log.

do_action( 'pmpromailerlite_sync_subscriber_for_user', int $user_id, bool $update_groups );

Runs when a user’s MailerLite subscriber record is synced.

Screenshots

Navigate to Memberships > MailerLite in the WordPress admin to configure your API key and general settings.

The Paid Memberships Pro MailerLite settings page showing the General Settings section with the API Key field and sync options

Assign Groups to Membership Levels

After you enter your API key, the Assign Groups section displays all membership levels with checkboxes to select one or more groups for each level.

The Assign Groups section showing membership levels with MailerLite group checkbox lists

Frequently Asked Questions

Where do I find my MailerLite API key?

In MailerLite, go to Integrations > MailerLite API and generate a new token, then paste it into the API Key field on the MailerLite settings page in WordPress.

Does this integration respect MailerLite’s double opt-in?

Yes. When Subscriber Status is set to “Respect account settings,” the integration honors your MailerLite double opt-in configuration, so members receive a confirmation email before they are subscribed. Choose “Always set to Active” to subscribe members immediately and bypass double opt-in.

Can I assign multiple groups to a single membership level?

Yes. You can assign as many MailerLite groups as you like to each membership level.

What happens when a member has multiple membership levels?

Members with multiple levels have all groups from all of their active levels. When they lose a level, only the groups specific to that level are removed (if group removal is enabled).

Are groups removed when a membership is cancelled?

Only if “Remove Groups When Membership Changes” is set to “Yes.” If set to “No,” groups are preserved even after a membership ends.

Will my existing members sync to MailerLite automatically?

No. The integration syncs a member when their membership level changes or their profile is updated. To add members who already exist on your site, import them into MailerLite with a CSV file.

This is a Free Add On.

Create a free account or log in to gain access to downloads and documentation.