wpmu_log_new_registrations( int $blog_id, int $user_id )

Logs the user email, IP, and registration date of a new site.


Parameters

$blog_id

(Required)

$user_id

(Required)


Source

File: wp-includes/ms-functions.php

function wpmu_log_new_registrations( $blog_id, $user_id ) {
	global $wpdb;
	$user = get_userdata( (int) $user_id );
	if ( $user )
		$wpdb->insert( $wpdb->registration_log, array('email' => $user->user_email, 'IP' => preg_replace( '/[^0-9., ]/', '', wp_unslash( $_SERVER['REMOTE_ADDR'] ) ), 'blog_id' => $blog_id, 'date_registered' => current_time('mysql')) );
}


Changelog

Changelog
Version Description
WP-MU Introduced. (3.0.0)