WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_others_drafts

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/deprecated.php apply_filters 710 /**
* Retrieves editable posts from other users.
*
* @since 2.3.0
* @deprecated 3.1.0 Use get_posts()
* @see get_posts()
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $user_id User ID to not retrieve posts from.
* @param string $type Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).
* Default 'any'.
* @return array List of posts from others.
*/

Hook Parameters

Parameter Type Name Description
int $user_id User ID to not retrieve posts from.
string $type Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).