get_others_unpublished_posts

DeprecatedDeprecated

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

SummerySummery

Retrieves editable posts from other users.

Syntax

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

ParametersParameters

$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'

ReturnReturn

(array) List of posts from others.

SourceSource

File: wp-admin/includes/deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Use get_posts()
2.3.0 Introduced.

See alsoSee also

Scroll to Top