[buddypress-trac] [BuddyPress Trac] #6936: Buddypress 2.5.0 Problem when setting up email templates: Situation list blank

buddypress-trac noreply at wordpress.org
Fri Apr 22 11:21:16 UTC 2016


#6936: Buddypress 2.5.0 Problem when setting up email templates: Situation list
blank
-----------------------------------+---------------------
 Reporter:  markob17               |       Owner:  djpaul
     Type:  defect (bug)           |      Status:  closed
 Priority:  highest                |   Milestone:  2.5.1
Component:  API - Emails           |     Version:  2.5.0
 Severity:  critical               |  Resolution:  fixed
 Keywords:  has-patch needs-codex  |
-----------------------------------+---------------------
Changes (by heliossolutions):

 * keywords:  has-patch => has-patch needs-codex
 * priority:  normal => highest
 * severity:  normal => critical


Comment:

 Hello Sir

 How to change email activation message text ?
 I have using buddypress verions 2.5.0

 I have try to changes subject,its working fine but message content would
 not change
 add_filter( 'bp_core_signup_send_validation_email_subject',
 'custom_buddypress_activation_subject', 10, 2 );

 function custom_buddypress_activation_subject( $subject, $user_id ) {
     $user = get_userdata( $user_id );
     return $user->user_login . ' – Activate your ' . get_bloginfo( 'name'
 ) . ' account';
 }

 To change the activation message – its not working in latest buddypress
 version
 add_filter( 'bp_core_signup_send_validation_email_message',
 'custom_buddypress_activation_message', 10, 3 );

 function custom_buddypress_activation_message( $message, $user_id,
 $activate_url ) {
     $user = get_userdata( $user_id );
     return "Hi $user->user_login,
 Thanks for registering! To complete the activation of your account please
 click the following link:
 $activate_url
 Thanks,
 Bharat";
 }

 Below given filter hook is also deprecated in new version:
 (1)bp_core_signup_send_validation_email_message
 (2)bp_core_signup_send_validation_email_subject

 Which can we use filter and hook instead of
 bp_core_signup_send_validation_email_message.
 Can you please suggest

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6936#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list