bp_core_sent_user_validation_email

  • do_action( 'bp_core_sent_user_validation_email', $subject, $message, $user_id, $user_email, $key )

    Source Reference:

    • Component: BuddyPress:: bp-members
      File: /bp-members/bp-members-signup.php :: Trac Source Line: 582
      	$subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
      
      	// Send the message
      	$to      = apply_filters( 'bp_core_signup_send_validation_email_to',     $user_email, $user_id                );
      	$subject = apply_filters( 'bp_core_signup_send_validation_email_subject', $subject,    $user_id                );
      	$message = apply_filters( 'bp_core_signup_send_validation_email_message', $message,    $user_id, $activate_url );
      
      	wp_mail( $to, $subject, $message );
      
      	do_action( 'bp_core_sent_user_validation_email', $subject, $message, $user_id, $user_email, $key );
      }
      
      // Stop user accounts logging in that have not been activated (user_status = 2)
      function bp_core_signup_disable_inactive( $auth_obj, $username ) {
      	global $bp, $wpdb;
      
      	if ( !$user_id = bp_core_get_userid( $username ) )
      		return $auth_obj;
      
      	$user_status = (int) $wpdb->get_var( $wpdb->prepare( "SELECT user_status FROM $wpdb->users WHERE ID = %d", $user_id ) );
      

Comments are closed.