wpmu_new_user action-hookWP 3.0.0

Fires immediately after a new user is created.

Usage

add_action( 'wpmu_new_user', 'wp_kama_wpmu_new_user_action' );

/**
 * Function for `wpmu_new_user` action-hook.
 * 
 * @param int $user_id User ID.
 *
 * @return void
 */
function wp_kama_wpmu_new_user_action( $user_id ){

	// action...
}
$user_id(int)
User ID.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wpmu_create_user()
wpmu_new_user
wp-includes/ms-functions.php 1333
do_action( 'wpmu_new_user', $user_id );

Where the hook is used in WordPress

wp-includes/ms-default-filters.php 26
add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' );
wp-includes/ms-default-filters.php 87
add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 );