• Good evening

    I need, if possible, a little help regarding a minor change I must do in the wp-sign-up.php form. My problem is that I must validate the username and email in another database aswell (outside WP).

    Suppose then I have a function check_user($user,$user_mail) which returns true or false if the user is also registered or not in that other database. Where and how do I put that function and how can I throw an warning error? I never messed before with this page…

    This help is kind of urgent…

    Kind regards,

    JKepler

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Use the ‘wpmu_validate_user_signup’ filter to do additional verification. On error, add you error to the WP_Error object in the array passed to your callback. For more information on the passed array, adding errors, etc., review the core sign up validation function source code.

    The callback you add is applied at line 545. If all is OK, return the array unchanged.

    Moderator bcworkz

    (@bcworkz)

    I should add that my timely reply is a mere coincidence. This forum is not a good option if your need is urgent. Reply time can vary anywhere from a few minutes to several days, if at all.

    Thread Starter jkepler

    (@jkepler)

    Hi

    Thanks for the help and…honesty.

    Kind regards,

    Kepler

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Minor change in WP wp-sign-up.php’ is closed to new replies.