Skip to:
Content
Pages
Categories
Search
Top
Bottom

Finding bp_signup_email_errors hook

  • Profile photo of Manoj H L
    Manoj H L
    Participant

    @manojhl123

    From almost 3 hours i am finding bp_signup_email_errors hook, and i am really pissed off for that.
    I need to accept email addresses with username@mysite.com
    I used is_email() function to add this filter but it added it to signup form of wordpress only.

    I buddypress it still accepts any email id.

    can any one please help with finding this bp_signup_email_errors hook!!!!!!!!!!!!!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    A find-in-files would easily reveal this. The action is called in /bp-default/registration/register.php.

    Profile photo of Manoj H L
    Manoj H L
    Participant

    @manojhl123

    I need to find the function bp_signup_email_errors to modify it….
    I searched the whole buddypress directory but i didn’t get it..

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    There isn’t a function called bp_signup_email_errors.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    There is no such function.
    There is a hook – as Paul showed you.
    Use that hook to write your own function.

    https://codex.wordpress.org/Function_Reference/do_action

    Put the function in a plugin or bp-custom.php

    https://codex.buddypress.org/developer/customizing/bp-custom-php/

    Profile photo of Manoj H L
    Manoj H L
    Participant

    @manojhl123

    wow………………..wait!!!!!!!!!!!!

    In wordpress while signing up is_email() function is used to verify whether that email good or not……
    along with in login,php their is a function called register_new_user() in there email address is checked.

    Then in buddypress how could it check user_email is in correct format or not !!!!!!!!!!!!

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Why would you use BP for checking emails ?

    emails are handled by WP.

    register_new_user has a filter hook that allows you do anything you want.
    `$user_email = apply_filters( ‘user_registration_email’, $user_email );`

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Finding bp_signup_email_errors hook’ is closed to new replies.