首页 WordPress函数大全 get_others_unpublished_posts()

get_others_unpublished_posts()

2020-05-01 / 5522阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use get_posts() instead.

get_others_unpublished_posts( int $user_id, string $type = 'any' )

Retrieves editable posts from other users.

描述

See also See also

  • get_posts()

Top ↑

参数

$user_id

(int)
(Required)
User ID to not retrieve posts from.

$type

(string)
(Optional)
Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).

Default value: 'any'

返回

(array) List of posts from others.

大家谈论
    我的见解