get_users_drafts()
get_users_drafts( int $user_id )
检索用户的草稿。
Retrieve the user’s drafts.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$user_id | (int) | 必需 | 用户ID。 |
返回(Return)
(array)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-admin/includes/user.php:306 | 0 | 4 |
get_users_drafts() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_users_drafts/