• 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

Simple registration invite code example

Chad Butler · Apr 7, 2013 ·

This article pre-dates the Invite Codes plugin extension. I am leaving it up because it is a nice, light-weight method of setting up a simple invite code process. However, if you just want something easy, check out the Invite Codes extension.

This is an example of adding a very simple invitation code to your registration process.  In this example, we will add an invitation code field to the form and set up a function to validate that code.  To keep it simple, the invitation code will be static (there will be only one code).  Later I will be publishing a more advanced example where you can read user specific codes from a database table, validate, and also mark the code as claimed.  Continue Reading →

Custom form field validation: numeric fields

Chad Butler · Mar 14, 2013 ·

WP-Members has its own built-in form field validation for things like usernames, email, and required fields.  But what if you need to validate other elements, such as testing to see if an entered value is a number?  Yes, the plugin framework allows for you to extend the form field validation to whatever you need.

Continue Reading →

Add password and email confirmation to the registration process

Chad Butler · Dec 12, 2012 ·

NOTE: As of plugin version 2.9.3, password, password confirm, and email confirm fields are included in the plugin’s default fields. All you need to do is enable them. Everything described in this post is now integrated into the plugin.

Some users like to have a confirmation process in their registration.  For example, having two email fields and comparing to make sure the user properly entered their email address.  This code snippet will show you how you can quickly add this feature with the addition of some custom fields in your form.

Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3

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