2020-05-02 / 5454阅 / 悠然
从博客中删除用户。
当用户从博客中删除时,请使用“ remove_user_from_blog”操作来触发事件。
如果要在删除后将用户的博客文章重新分配给另一个用户,则接受一个可选的$ reassign参数。
(int)
(Required)
ID of the user being removed.
(int)
(Optional)
ID of the blog the user is being removed from. Default 0.
(int)
(Optional)
ID of the user to whom to reassign posts. Default 0.
(true|WP_Error) True>WP_Error object if the user doesn't exist.