Overview
MemberPress is one of the most popular membership plugins for WordPress, allowing you to create and manage memberships, restrict content, and process subscription payments. Groundhogg provides direct integration with MemberPress, allowing you to apply tags automatically when members gain or lose access to a membership, segment your contacts by membership data, and view a member’s full transaction and subscription history directly from the contact record.
You can download this add-on from the Groundhogg website or as part of a plan and install it on your website.
Note: MemberPress’s Developer Tools add-on is required for the search filters to work.
Tagging
The MemberPress integration adds a Groundhogg Integration panel to the sidebar of every membership (product) edit screen. Use it to configure which tags are applied and removed automatically as a member’s status changes.
Membership Tags
Tags selected in the Membership tags field will be applied to a contact whenever they are given access to that membership — whether through a purchase, a manual order, or a subscription renewal. The same tags will be removed automatically if the member loses access, for example when a subscription is cancelled, expired, refunded, or voided.
Trial Tags
If the membership has a trial period enabled, a second tag picker labelled Trial tags will appear in the panel. Tags selected here are applied when a contact is currently in their trial period and removed automatically once the trial ends.
Save the membership after selecting tags to apply your changes.
Active Member Tag
In addition to per-membership tags, the integration maintains a single global Active Member Tag that is applied to every contact who has at least one active subscription or membership of any kind. When a member’s last active subscription or membership lapses, the Active Member Tag is removed.
On first installation, the integration automatically creates a tag named MemberPress Member and assigns it as the Active Member Tag. You can change this to any tag you prefer.
To configure the Active Member Tag, go to Groundhogg → Settings → Integrations → MemberPress and select the desired tag from the Active Member Tag picker.
You can use the Tag Applied trigger in a flow to start onboarding or follow-up automations whenever a contact receives the Active Member Tag.
Filters
The MemberPress integration provides five filters for segmenting contacts in the contacts table, broadcasts, and flows. You can find them under Filter Contacts in the contacts area.
Has Membership
Filter contacts by whether they currently hold a specific membership, or any membership at all. You can filter by active or inactive membership status.
Membership Count
Filter contacts by the total number of memberships they hold. Supports numeric comparisons: equal to, not equal to, greater than, less than, greater than or equal to, and less than or equal to. Can be filtered by active or inactive memberships.
Total Spent
Filter contacts by their total amount spent through MemberPress. Supports numeric comparisons so you can target high-value members or find members who have spent above or below a threshold.
Subscription Count
Filter contacts by their number of subscriptions, optionally scoped to a specific subscription status: All, Pending, Active, Cancelled, or Suspended. Supports numeric comparisons.
Transaction Count
Filter contacts by their number of transactions, optionally scoped to All, Active, or Expired transaction statuses. Supports numeric comparisons.
Contact Info Card
Every contact record shows a MemberPress info card in the right sidebar (visible to administrators). The card displays the member’s full MemberPress history across three sections.
Summary — shown at the top of the card:
- Member ID — links to the member’s MemberPress admin page
- Total Customer Value — the member’s total amount spent across all transactions
- Transactions — the number of completed transactions
- Subscriptions — the number of currently active subscriptions
- Memberships — a list of the member’s active membership names
Transactions — each transaction listed with:
- Transaction ID (linked to the MemberPress transactions admin page) with a colour-coded status badge: Complete/Confirmed (green), Pending (orange), Failed/Refunded (red)
- Transaction date and time
- Transaction amount
- Product (membership) name, linked to the membership edit screen
Subscriptions — each subscription listed with:
- Subscription ID (linked to the MemberPress transactions admin page) with a status badge: Active/Enabled (green), Paused (orange), Stopped/Cancelled (red)
- Product (membership) name, linked to the membership edit screen
If the contact has no linked WordPress user account, or no MemberPress transactions, the card displays an appropriate message.
Tools
Sync with MemberPress — if you were using MemberPress before installing Groundhogg, your existing members won’t automatically be synced with Groundhogg contacts. Use the Sync with MemberPress tool to backfill them. Find it under Groundhogg → Tools → Tools → Sync with MemberPress and click the [ Process ] button.
The sync will:
- Create contacts from all existing MemberPress members
- Apply or remove tags based on each member’s current active memberships
After the sync completes, you will be redirected to the contacts table filtered to show all contacts with an active membership.
Code Snippets
Set opt-in status and consent when a member becomes active
Use this snippet to automatically confirm a contact’s opt-in status and record marketing consent, GDPR consent, and terms agreement the moment they become an active member in MemberPress.
<?php
add_action( 'mepr-account-is-active', 'set_contact_optin_status_and_consent', 11 );
/**
* When a member becomes active in MemberPress, change their opt-in status
* to confirmed and record their consents.
*
* @param $txn MeprTransaction
*
* @return void
*/
function set_contact_optin_status_and_consent( $txn ) {
$contact = \GroundhoggMemberPress\Plugin::instance()->event_handler->get_contact_from_txn( $txn );
if ( ! $contact ) {
return;
}
// Change to confirmed
$contact->change_marketing_preference( \Groundhogg\Preferences::CONFIRMED );
// Record consents
$contact->set_marketing_consent();
$contact->set_gdpr_consent();
$contact->set_terms_agreement();
}
FAQs / Troubleshooting
Q. Are tags removed automatically when a membership expires or is cancelled?
A. Yes. Membership tags are removed when a member loses access, including when a subscription is cancelled, expired, refunded, or voided. The Active Member Tag is also removed when the member has no remaining active subscriptions or memberships.
Q. Does the integration work with manual orders created from the MemberPress admin?
A. Yes. Tags are applied whenever MemberPress fires the mepr-account-is-active hook, which covers purchases, manual orders, and subscription renewals.
Q. The search filters aren’t showing up. What’s wrong?
A. The MemberPress Developer Tools add-on must be installed and active for the search filters to work. Install it from your MemberPress account dashboard and the filters will appear automatically.
Q. What’s the difference between Membership Tags and Trial Tags?
A. Membership tags are active for the entire duration of a member’s access to the membership. Trial tags are only active while the member is within their trial period — they are applied at the start of the trial and removed when the trial converts to a paid subscription or expires. Trial tags only appear in the metabox if the membership has a trial period configured in MemberPress.
Q. Does the integration create contacts automatically when someone purchases a membership?
A. Not automatically on purchase — the contact must already exist in Groundhogg for tags to be applied. However, the Sync with MemberPress tool will create contacts from all existing members. To create contacts automatically from new members going forward, you can use a code snippet or ensure members register through a Groundhogg form first.
Was this helpful?
Let us know if this document answered your question. That’s the only way we can improve.
