• Resolved rr2017

    (@rr2017)


    Hello,

    Right now the error message for the URL entry in the registration form only says invalid URL and does not give instructions to include http:// in front of the url. How can I change the message so that it includes this instruction?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @rr2017

    You can this filter hook um_submit_form_error to modify the error message.

    See code snippet below:

    <?php
    add_filter("um_submit_form_error","um_custom_um_submit_form_error", 10, 2 );
    function um_custom_um_submit_form_error( $error, $key ){
      
      if( "my_field_meta_key" == $key ){
            $error = "Invalid URL";
      }
      return $error;
    }
    ?>

    Hope this helps you.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @rr2017

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change URL Error Message on Registration form’ is closed to new replies.