get_others_unpublished_posts()
get_others_unpublished_posts( int $user_id, string $type = ‘any’ )
从其他用户检索可编辑的帖子。
Retrieves editable posts from other users.
说明(Description)
另见函数 get_posts()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$user_id | (int) | 必需 | 不从中检索文章的用户ID。 |
$type | (string) | 可选 | 要检索的日志类型。接受“草稿”、“挂起”或“任何”(全部)。 |
返回(Return)
(array)其他人的职位列表。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-admin/includes/deprecated.php:685 | 2 | 5 |
get_others_unpublished_posts() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_others_unpublished_posts/