wpmu_new_user WordPress Action Hook

The wpmu_new_user hook is used to create a new user account when a user signs up for a WordPress Multisite network. This hook is fired when a user completes the signup process and their account is created.

do_action( 'wpmu_new_user', int $user_id ) #

Fires immediately after a new user is created.


Parameters

$user_id

(int)User ID.


Top ↑

More Information

This hook will get triggered when either a user self-registers or a Super Admin creates a new user on a Multisite. Use this hook for events that should affect all new users on a Multisite; otherwise, use ‘user_register‘.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More