1. 首页
  2. WordPress 函数手册

get_most_recent_post_of_user()

get_most_recent_post_of_user( int $user_id )

获取用户的最新帖子。
Get a user’s most recent post.

目录锚点:#说明#参数#返回#源码


说明(Description)

浏览每个用户的博客以查找包含最新帖子日期的帖子。


参数(Parameters)

参数 类型 必填 说明
$user_id (int) 必需

返回(Return)

(array)包含blog_id、post_id、post_date_gmt和post_gmt


源码(Source)


更新版本 源码位置 使用 被使用
MU (3.0.0) wp-includes/ms-functions.php:1794 0 4

get_most_recent_post_of_user() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_most_recent_post_of_user/