Filters whether a user should be added to a site.
Parameters
$retval
true|WP_Error- True if the user should be added to the site, error object otherwise.
$user_id
int- User ID.
$role
string- User role.
$blog_id
int- Site ID.
Source
$can_add_user = apply_filters( 'can_add_user_to_blog', true, $user_id, $role, $blog_id );
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.