Skip to:
Content
Pages
Categories
Search
Top
Bottom

Finding bp_signup_email_errors hook

  • @manojhl123

    Participant

    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)
  • @djpaul

    Keymaster

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

    @manojhl123

    Participant

    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..

    @djpaul

    Keymaster

    There isn’t a function called bp_signup_email_errors.

    @shanebp

    Moderator

    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/

    @manojhl123

    Participant

    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 !!!!!!!!!!!!

    @shanebp

    Moderator

    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.
Skip to toolbar