get_others_unpublished_posts


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

Parameters:
  • (int) $user_id User ID to not retrieve posts from.
  • (string) $type Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all). Default 'any'.
See:
Returns:
  • (array) List of posts from others.
Defined at:

Description

Retrieves editable posts from other users.

Related Functions

get_the_author_posts, get_others_drafts, get_others_pending, wp_publish_post, check_and_publish_future_post

Top Google Results

User discussions

wpseek mobile