bp_members_signup.php
-
I’m trying to troubleshoot the email activation messages that go out when users signup with buddypress….after a bit of googling, I found the right bit of code in a file that should be /bp-members/bp-members-signup.php
function bp_members_signup_send_validation_email( $user_id, $user_email, $key ) {
$activate_url = bp_get_activation_page() .”?key=$key”;
$activate_url = esc_url( $activate_url );$from_name = ( ” == get_option( ‘blogname’ ) ) ? __( ‘BuddyPress’, ‘buddypress’ ) : esc_html( get_option( ‘blogname’ ) );
$message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url );
$subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );// Send the message
$to = apply_filters( ‘bp_members_signup_send_validation_email_to’, $user_email, $user_id );
$subject = apply_filters( ‘bp_members_signup_send_validation_email_subject’, $subject, $user_id );
$message = apply_filters( ‘bp_members_signup_send_validation_email_message’, $message, $user_id, $activate_url );wp_mail( $to, $subject, $message );
do_action( ‘bp_members_sent_user_validation_email’, $subject, $message, $user_id, $user_email, $key );
}HOWEVER, in the version of BuddyPress running on our site (version 1.2.5.2) I can’t find any directories named bp-members/ at all! Have I gone mad? Has it been moved somewhere else?
- The topic ‘bp_members_signup.php’ is closed to new replies.