Function: get_users_drafts

get_users_drafts( integer $user_id )

Retrieve the user's drafts.

Parameters

Name Type(s) Default Value Description
$user_id integer

User ID.

Returns

array

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.