added_existing_user WordPress Action Hook

The added_existing_user hook is called when an existing user is added to a blog. This hook is similar to the user_register hook, but is only called when an existing user is added to a blog. This can happen when a user is added to a blog through the admin interface, or when a user signs up for a new blog through the signup process. This hook can be used to perform any actions that should happen when a new user is added to a blog, such as sending a welcome email or adding the user to a mailing list.

do_action( 'added_existing_user', int $user_id, true|WP_Error $result ) #

Fires immediately after an existing user is added to a site.


Parameters

$user_id

(int)User ID.

$result

(true|WP_Error)True on success or a WP_Error object if the user doesn't exist or could not be added.


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