get_others_pending()
云策文档标注
概述
get_others_pending() 是一个已弃用的 WordPress 函数,用于检索其他用户的待审核文章。它已被 get_others_unpublished_posts() 替代。
关键要点
- 函数功能:检索指定用户 ID 以外的其他用户的待审核文章列表。
- 弃用状态:自 WordPress 3.1.0 版本起被弃用,建议使用 get_others_unpublished_posts() 替代。
- 参数要求:必须提供 $user_id 整数参数,表示用户 ID。
- 返回值:返回一个包含待审核文章的数组。
注意事项
- 此函数已弃用,新代码中应避免使用,以免影响兼容性。
- 调用时会触发 _deprecated_function() 以标记弃用状态。
原文内容
Retrieve pending review posts from other users.
Description
See also
Parameters
$user_idintrequired-
User ID.
Source
function get_others_pending($user_id) {
_deprecated_function( __FUNCTION__, '3.1.0' );
return get_others_unpublished_posts($user_id, 'pending');
}
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |