• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Archives for wpmem_mc_get_list_member

wpmem_mc_get_list_member

Validate Registration Based on MailChimp Subscription Status

Chad Butler · Aug 7, 2017 ·

This is one of those things that I never thought of but came up in a discussion with a support subscriber. Can registration be validated based on whether a user is subscribed to the MailChimp list or not?  If the user is subscribed, allow registration but if not return an error message.

The answer is yes, that’s quite possible.  WP-Members allows custom validation via the wpmem_pre_register_data action hook, and the MailChimp extension has an API function (wpmem_mc_get_list_member()) to check a list subscriber’s status.  The combination of those two things can be used to accomplish this in a simple code snippet.  Continue Reading →

Use the MailChimp Integration Extension API to Add MailChimp Data to User Profile

Chad Butler · Jun 24, 2016 ·

The new MailChimp Integration Extension includes a user API in version 2.0.  This can be used to call information about any specific list member without having to worry about formatting the request to send through the actual MailChimp API.  The extension’s user API does this for you.

This is an example using the extension’s API function wpmem_mc_get_list_member() function to retrieve the list member’s MailChimp information and display some of it on the admin user profile.  We will use the WP-Members action hook wpmem_admin_after_profile to display this at the bottom of the WP-Members section of the profile. The end result will add a a line like the image below to the WP-Members section of the user profile

mailchimpdataContinue Reading →

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy