• 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

Request additional data fields on a specific page

Chad Butler · Apr 20, 2014 ·

This particular example is a generic tutorial for requesting additional data fields in the registration form on a specific page. Since these are fields that do not show up in the regular registration form, we need to also present the data to logged in users to add this data.

While conceptually this is not an overly complicated process, the practical implementation has quite a few steps, so I will try to explain each step in the process while giving that particular code snippet being discussed at that point.Continue Reading →

Add a Date of Birth Field with Dropdown Selections for Month, Day, and Year

Chad Butler · Mar 27, 2014 ·

I have received a lot of requests in the past for how to add a set of dropdown selections for date and store it as a single user meta value. This is a great example of using the new wpmem_register_form_rows filter hook, a new hook in 2.9, because we can use a single field in the WP-Members Fields tab for the date of birth to be stored as a single meta and use the filter to quickly change the placeholder field to a trio of dropdowns for date selection.

Note: this example requires a some php work, but like all of the examples here, I have tried to make it as “cut-and-paste ready” as I can.  For many, this will work out of the box.  For some, you may want to change the way the date is assembled and displayed (i.e. DD/MM/YYYY). I’ve tried to comment the code snippet as much as possible so you can follow what is going on.  Continue Reading →

Only Allow Registration From Specified Email Domains

Chad Butler · Jan 11, 2014 ·

One really fun thing about developing, maintaining, and supporting WP-Members over the years is putting together unique customizations and code snippets based on user requests that I never thought of.  It shows how truly versatile the plugin is and that there is a very diverse user base.

This particular snippet comes from a user request to essentially create an email whitelist for registration, thus only allowing registration if the user’s email account is from a certain domain.  This can be used in a number of different scenarios.  One particular use would be for someone maintaining content for specific business clients and you only want users from those specific client domains to be able to register.  Continue Reading →

Fighting registration spam with a honey pot

Chad Butler · Aug 3, 2013 ·

I’ve had a few requests for help with combating registration spam using the plugin.  To be honest, I’m right there with you all – I was getting a great deal of registration spam here on the site.  I’ve been working on how to reduce that with a number of approaches.

One approach is the Security extension which has settings to set up black lists.  But blocking IP addresses needs to be done with caution.  Many spammers are not spamming from their own machines.  Some of it comes from innocent victims with compromised systems.

Another possible solution that can work well is to use what is known as a “honey pot.”  This is essentially a trap that the spam bot puts its hand into and is trapped.  That is the method I will describe here.

Continue Reading →

Validate a registration with a PIN

Chad Butler · Apr 16, 2013 ·

Here is a script idea you can use to validate a stored value that you might have for users (such as a PIN) against their registration data.  This example will assume that you only want to allow certain registrations for people who you already have data on (in this example, their name) and you want to validate that the user registering is that person.  This example will use PIN assigned to the user’s data that we have and the script will validate the PIN provided at registration or will halt registration. Continue Reading →

  • « Go to Previous Page
  • 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