can_add_user_to_blog
最后更新于:2021-11-25 22:32:54
apply_filters( ‘can_add_user_to_blog’, true|GC_Error $retval, int $user_id, string $role, int $blog_id )
Filters whether a user should be added to a site.
参数
- $retval
-
(true|GC_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.
源文件
文件: gc-includes/ms-functions.php