make website field compulsory

Hi there,
Just wondering if there is a quick way to make the website field on the sign up form compulsory?
I have played with the code but cant find the correct area to adjust?

Many thanks for the great support.


Comments

3 responses to “make website field compulsory”

  1. Hi Antonio,
    Thanks, I have been into that file and tried some modifications but i am getting errors.
    IT is more complex than I had hoped. WhenI make some changes It is throwing errors
    I have tried to replicate the other required fields!
    Can you assist at all as I cant get this to work?

    Many many thanks

    pete

    1. antonio Avatar

      Hi,
      you could add around line 208, something like this:
      $url = isset( $_POST['url'] ) ? Affiliates_Utility::filter( $_POST['url'] ) : '';
      if ( empty( $url ) ) {
      $url_class = ' class="required missing" ';
      $error = true;
      }

      But remember to change the code is not advisable.
      cheers

  2. antonio Avatar

    Hi,
    right now it’s not implemented. You could create you own registration shortcode (in affiliates-pro/lib/core/class-affiliates-registration-php file you can see how to works the actual shortcode).
    cheers

Share