Page 1 of 1

Eliminate fields from registration form

PostPosted: June 25th, 2010, 3:04 am
by Severus
Hi there,

I have installed the plugin without problem, however the registration page request data that I do not need and may complicate legally innecesarily the site (protection data Law in germany is very strong).

For my site I just need an username and email, (maybe the first name if I want to send a personalized email) that´s all.

How could I take away the Last Name field from the registration page.

This is my current Registration page: http://www.severus.es/wp-login.php?action=register

Thanks

Severus

Re: Eliminate fields from registration form

PostPosted: June 26th, 2010, 2:23 am
by Jason Caldwell
Hi Severus. Thanks for your inquiry.

This IS possible, but it's NOT done easily. s2Member is designed to collect this minimum information. That being said, if you really would like this to work; you'll want to override a function inside:
/s2member/includes/functions/register-access.inc.php

You don't have to do a direct edit on that file, you just need to declare this function before s2Member loads into WordPress, "ws_plugin__s2member_custom_registration_fields()".

Re: Eliminate fields from registration form

PostPosted: July 19th, 2010, 2:48 am
by jambon
Could you be a little more specific on how this can be done? Not exactly sure what you mean by just declaring that function - thanks!

Re: Eliminate fields from registration form

PostPosted: July 22nd, 2010, 6:36 am
by Jason Caldwell
Yea, that was pretty vague..
~ So sorry about that.

Here is what I mean.
Inside your /wp-config.php file, add this line:
Code: Select all
function ws_plugin__s2member_custom_registration_fields(){}