register_new_user WordPress Action Hook

The register_new_user hook is triggered when a new user registers on the site. It allows you to perform custom actions when a new user is registered, such as sending an email or adding the user to a custom database.

do_action( 'register_new_user', int $user_id ) #

Fires after a new user registration has been recorded.


Parameters

$user_id

(int)ID of the newly registered user.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

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
Show More