wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_blogs_of_user › WordPress过滤钩子

SinceMU (3.0.0)
已弃用n/a
apply_filters( 'get_blogs_of_user', $sites, $user_id, $all )
参数: (3)
  • (object[]) $sites An array of site objects belonging to the user.
    Required: Yes
  • (int) $user_id User ID.
    Required: Yes
  • (bool) $all Whether the returned sites array should contain all sites, including those marked 'deleted', 'archived', or 'spam'. Default false.
    Required: Yes
定义在:
文档:

Filters the list of sites a user belongs to.





源码

return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );