WPDev.one
Core Function
View Source on Trac ↗

get_others_unpublished_posts()

get_others_unpublished_posts( mixed $user_id, mixed $type = 'any' )

Retrieves editable posts from other users.

Parameters 2 required

Name / Type Description
$user_id
int

User ID to not retrieve posts from.

Required
string

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

Required

Return Value

(array)
List of posts from others.

Function Information

Since Version
2.3.0
Source File
wp-admin/includes/deprecated.php
Advertisement