Your cart is currently empty!
“Last name” as a not required field
—
by
I’d like to know how to make “Last name” a non-required field, so users are not obliged to complete it. Most of my users didn’t add that information in their profile, and I don’t want to make them write it.
Posted in Affiliates Pro
Comments
6 responses to ““Last name” as a not required field”
Could be more specific? What have I to modify?
Hi Juan, there is a new filter (update to 2.4.3 please which is now available in the Downloads section) that can be used to indicate an alternative profile URL. The name fields are really both required, so the filter at least allows you to change the URL to where you have the profile and they can indicate the missing info. The filter is documented in the Filters section, it’s
affiliates_registration_profile_url
. The filter can be added easily e.g. to your theme’sfunctions.php
, if you need help with that please let us know.Yes, could you help me with that? Please ignore my comment in the main page of the plugin, I prefer to continue the communication here. This is the code I want to put, instead of the link to profile.php. It creates a pop-up window:
Modify Profile
<!– Modify Profile –>
Hi,
you can use something similar to:
add_filter ('affiliates_registration_profile_url', 'my_personal_profile_url');
function my_personal_profile_url ($url) {
return "www.mydomain.com/my-page";
}
cheers
Hi,
normally, users need that field.
If you need to customize your plugin, you can check out affiliates-pro/lib/core/class-affiliates-registration.php (line 187)
cheers