edit_user_created_user WordPress Action Hook

The edit_user_created_user hook is called whenever a user is created or edited. It is passed two arguments: the user ID and the user object. This hook can be used to modify the user object before it is saved to the database.

do_action( 'edit_user_created_user', int|WP_Error $user_id, string $notify ) #

Fires after a new user has been created.


Parameters

$user_id

(int|WP_Error)ID of the newly created user or WP_Error on failure.

$notify

(string)Type of notification that should happen. See wp_send_new_user_notifications() for more information.


Top ↑

Source

File: wp-admin/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.