Skip to:
Content
Pages
Categories
Search
Top
Bottom

Registration hooks


  • ShMk
    Participant

    @shmk

    Hello,
    what are the correct hooks to use during the user registration to have a custom validation on user input fields? (like checking for particular email domain or username)

    Thanks!

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

  • Henry Wright
    Moderator

    @henrywright

    Hi @shmk

    That would be bp_signup_usermeta. You’d filter $usermeta which is an array of the sign-up info.


    ShMk
    Participant

    @shmk

    Thanks for the info,
    it addressed me to the code I was looking for 🙂

    I decided to use the bp_signup_pre_validate hook instead and directly modify the $_POST because on the bp_signup_usermeta BP has already made some edits and some data are missing in $usermeta.


    Henry Wright
    Moderator

    @henrywright

    Ah yes, the bp_signup_pre_validate action will give you access to the $_POST variables. Nice idea! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Registration hooks’ is closed to new replies.
Skip to toolbar