• 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 » Plugins » WP-Members » Documentation » Filter Hooks » wpmem_register_form

wpmem_register_form

Description

This filter hook comes after the html for the registration form is compiled. Using this filter, you can make changes to the registration form.

Usage

add_filter( 'wpmem_register_form', 'my_register_form_filter', 10, 4 );

function my_register_form_filter( $form, $toggle, $rows, $hidden ) {

	/**
	 * The registration form is brought in with $form
	 * You can append to it or filter it
	 *
	 * $toggle: the form being served: new|edit
	 * $rows:   array of the form's rows (wpmem_register_form_rows)
	 * $hidden: string of the hidden fields (wpmem_register_hidden_fields)
	 */

	return $form;
}

Code Snippet Library [Subscriber Content]

  • Display form rows in columns
  • Force user to update data before using the site
  • Add a separator line of text in the registration form (wpmem_register_form_rows version)
  • Add a Date of Birth Field with Dropdown Selections for Month, Day, and Year
  • Multiple Selection Checkboxes – Add A Section Heading (Advanced)
  • Multiple Selection Checkboxes – Add A Section Heading (Basic)
  • Add a privacy policy or a terms of service in a textarea field
  • Add a separator line of text in the registration form
  • Multiple Selection Checkboxes
  • Fighting registration spam with a honey pot
  • Move form label for checkboxes with a filter
  • Workaround for registration form layout issues
  • Adding user display name to the registration form
  • Add section headings to the registration form
  • Show optional form fields only on user update
See a list of all filter and action hooks

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