Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile fields and bp_core_signup_send_validation_email_message filter


  • paragbhagwat
    Participant

    @paragbhagwat

    Hello All,

    I added a few profile fields like
    Saluation -> dropdown
    First Name ->texbox
    Last Name ->textbox
    TOS-> checkbox

    When i look at the wp_usermeta table i do not see all these fields in meta key and what it seems to eb doing is that the existing nick name value its splitting in first name and last name.. so my first question is

    1) Am i looking at the correct table??? if not where is the data that a user enters on register page stored?

    I am also looking to override the activation email message by adding a filter for bp_core_signup_send_validation_email_message.. My code is

    add_filter( 'bp_core_signup_send_validation_email_message', 'RECN_CUSTOM_activation_message', 10, 3 );
    
    function RECN_CUSTOM_activation_message( $message, $user_id, $activate_url ) {
        $user = get_userdata( $user_id );
        return "Hello $user->salutation $user->first_name,$user->last_name.";
    
    Question 2:
    $user->salutation $user->first_name,$user->last_name all return empty string?

    Is that the correct way to retrieve that data?

    Thanks,
    Parag

  • The topic ‘Profile fields and bp_core_signup_send_validation_email_message filter’ is closed to new replies.
Skip to toolbar