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