apply_filters( 'can_add_user_to_blog', bool|WP_Error $retval , int $user_id , string $role , int $blog_id )
Filters whether a user should be added to a site.
Description Description
Parameters Parameters
- $retval
-
(bool|WP_Error) True if the user should be added to the site, false or error object otherwise.
- $user_id
-
(int) User ID.
- $role
-
(string) User role.
- $blog_id
-
(int) Site ID.
Source Source
Changelog Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |