WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get most recent post of user

Contents

Description

Get the most recent post of a user.

Walks through each of a user's blogs to find the post with the most recent post_date_gmt.

Usage

<?php get_most_recent_post_of_user$user_id ); ?>

Parameters

$user_id
(int) (required)
Default: None

Return Values

(array) 

Contains the blog_id, post_id, post_date_gmt, and post_gmt_ts

Source File

get_most_recent_post_of_user() is located in wp-includes/ms-functions.php