Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • intimate1
    Participant

    @intimate1

    Yeah,

    This is a bit more advance for me?

    $admin_email = “admin@intimatencounters.com”;
    $message = sprintf( __( ‘Member: %1$s’, ‘buddypress’ ), bp_core_get_user_displayname( $user_id ) ) . “\r\n\r\n”;
    $message .= sprintf( __( ‘Color: %s’ ), bp_get_profile_field_data(‘field=Color’) ). “\r\n\r\n”;
    wp_mail( $admin_email, sprintf( __( ‘[YOUR SITE] Member Profile Update’ ), get_option(‘IntimatEncnounters’) ), $message );
    }
    
    add_action( ‘xprofile_updated_profile’, ‘rc_buddypress_profile_update’, 10, 5 );

    I have a lot of unknowns.

    For example, for line 5 do I need to include every single field? Also, for the bit of code that preceeds bp_get_profile_field_data, .= sprintf( __( ‘Color: %s’ ). Do I need to include anything in here, next to ‘Color:%s’ or leave it as is?

    For line 6, do I need to type the captitalized [YOUR SITE] exactly like this [INTIMATENCOUNTERS]?

    And lastly, for ‘blogname’ would I type ‘intimatencounters’ ?

    function rc_buddypress_profile_update( $user_id ) {

    Thanks,

    C.E.

Viewing 1 replies (of 1 total)
Skip to toolbar