“Last name” as a not required field

Posted in

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.

6 Responses to “Last name” as a not required field

  1. Juan November 23, 2013 at 7:14 pm #

    Could be more specific? What have I to modify?

    • kento November 24, 2013 at 2:57 pm #

      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’s functions.php, if you need help with that please let us know.

      • Juan November 25, 2013 at 5:48 am #

        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

        • Juan November 25, 2013 at 5:51 am #

          <!– Modify Profile –>

        • antonio November 25, 2013 at 6:07 am #

          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

  2. antonio November 23, 2013 at 6:10 pm #

    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

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share