Warning: This function has been deprecated. Use get_posts() instead.
get_others_drafts() WordPress Function
The get_others_drafts() function in WordPress allows you to view all draft posts by other users on the site. This can be useful if you want to see what others are working on, or if you need to find a particular draft post.
get_others_drafts( int $user_id ) #
Retrieve drafts from other users.
Description
See also
Parameters
- $user_id
(int)(Required)User ID.
Return
(array) List of drafts from other users.
Source
File: wp-admin/includes/deprecated.php
function get_others_drafts($user_id) { _deprecated_function( __FUNCTION__, '3.1.0' ); return get_others_unpublished_posts($user_id, 'draft'); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |