get_others_drafts

Retrieve drafts from other users.

Description

(array) get_others_drafts( (int) $user_id ); 

Returns (array)

List of drafts from other users.

Parameters (1)

0. $user_id (int)
The user id.

Usage

  1. if ( !function_exists( 'get_others_drafts' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The user id. 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_others_drafts($user_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function get_others_drafts($user_id) { 
  2. _deprecated_function( __FUNCTION__, '3.1.0' ); 
  3.  
  4. return get_others_unpublished_posts($user_id, 'draft');