Wordpress 钩子:can_add_user_to_blog
文章目录
过滤是否应将用户添加到站点。
原型
apply_filters( 'can_add_user_to_blog', bool|WP_Error $retval, int $user_id, string $role, int $blog_id )
参数
$retval
(bool|WP_Error)
如果应将用户添加到站点,则为True,否则为false或错误对象。
$user_id
(int)
用户身份。
$role
(string)
用户角色。
$blog_id
(int)
网站ID。
源文件
路径:wp-includes/ms-functions.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/can_add_user_to_blog/
文章作者 iBllex
上次更新 2019-02-14