bp_core_activation_signup_user_notification_message

  • apply_filters( 'bp_core_activation_signup_user_notification_message', $message, $user, $user_email, $key, $meta )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-filters.php :: Trac Source Line: 243
      	$from_name       = ( '' == get_site_option( 'site_name' ) ) ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
      	$message_headers = "MIME-Version: 1.0n" . "From: "{$from_name}" <{$admin_email}>n" . "Content-Type: text/plain; charset="" . get_option( 'blog_charset' ) . ""n";
      	$message         = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:nn%snn", 'buddypress' ), $activate_url . $email );
      	$subject         = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
      
      	// Send the message
      	$to      = apply_filters( 'bp_core_activation_signup_user_notification_to',   $user_email, $user, $user_email, $key, $meta );
      	$subject = apply_filters( 'bp_core_activation_signup_user_notification_subject', $subject, $user, $user_email, $key, $meta );
      	$message = apply_filters( 'bp_core_activation_signup_user_notification_message', $message, $user, $user_email, $key, $meta );
      
      	wp_mail( $to, $subject, $message, $message_headers );
      
      	do_action( 'bp_core_sent_user_signup_email', $admin_email, $subject, $message, $user, $user_email, $key, $meta );
      
      	// Return false to stop the original WPMU function from continuing
      	return false;
      }
      if ( !is_admin() || ( is_admin() && empty( $_POST['noconfirmation'] ) ) )
      	add_filter( 'wpmu_signup_user_notification', 'bp_core_activation_signup_user_notification', 1, 4 );
      

Comments are closed.