do_action( 'add_user_to_blog', int $user_id , string $role , int $blog_id )
Fires immediately after a user is added to a site.
Description Description
Parameters Parameters
- $user_id
-
(int) User ID.
- $role
-
(string) User role.
- $blog_id
-
(int) Blog ID.
Source Source
Changelog Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Here is a use case when you may need to add users to common sites (forums, support trackers etc ) on the network apart from the main site and their own site(s).
Expand full source codeCollapse full source code