2020-05-01 / 3398阅 / 悠然
Adds a user to a blog.
Use the ‘add_user_to_blog’ action to fire an event when users are added to a blog.
(int)
(Required)
ID of the blog the user is being added to.
(int)
(Required)
ID of the user being added.
(string)
(Required)
The role you want the user to have
(true|WP_Error) True>WP_Error object if the user doesn't exist or could not be added.