• 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_pre_register_data

wpmem_pre_register_data

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 →

Automatically approve accounts from whitelisted domains

Chad Butler · Jun 20, 2017 ·

This article is a followup to “Restrict registration to specific email domains, IPs, or other data” that adds an element for moderated registration.  In this case, moderated registration is used and registrants with emails accounts from whitelisted domains are automatically approved, leaving all others to be approved by an administrator.

It should be noted that this only applies to WP-Members registration. It has become more common to integrate WP-Members with other plugins that also have registration, such as WooCommerce, BuddyPress, bbPress, etc.  If you are using one of these plugins for registration, that’s fine – but you need to then look into their process for custom validation.  Continue Reading →

Restrict registration to specific email domains, IPs, or other data

Chad Butler · Jun 7, 2017 ·

WP-Members allows for customizing the registration form validation. This feature can be used to restrict registration based on the user’s information such as email address, IP address, or some other data point.  This article covers how to do that and includes some basic examples.

It should be noted that this only applies to WP-Members registration. It has become more common to integrate WP-Members with other plugins that also have registration, such as WooCommerce, BuddyPress, bbPress, etc.  If you are using one of these plugins for registration, that’s fine – but you need to then look into their process for custom validation. Continue Reading →

Integrating Really Simple CAPTCHA

Chad Butler · Apr 25, 2014 ·

Really Simple CAPTCHA can be used with the WP-Members plugin in place of the default reCAPTCHA.

Note: This method of adding Really Simple CAPTCHA is no longer necessary as it is now supported directly within the plugin. Install and activate the Really Simple CAPTCHA plugin, enable it in the WP-Members options, and customize using the settings in the CAPTCHA tab. I am leaving this post active, however, as the code may be useful for developers that want more exact control over the Really Simple CAPTCHA display.

Continue Reading →

Confirm password at registration and have password meet specific criteria

Chad Butler · Apr 25, 2014 ·

I’ve shown other code snippets for similar things – password validation at registration and having a password meet specific criteria.  However, the password requirements example was geared toward a setup that was requiring this when a user changes their password (they were not allowing it to be set at registration).

So here is an example that combines the two of these elements at registration.  Continue Reading →

  • Page 1
  • Page 2
  • Page 3
  • Go to Next Page »

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