Function: user_can_create_draft

user_can_create_draft( integer $user_id, integer $blog_id, integer $category_id )

Whether user can create a post.

Parameters

Name Type(s) Default Value Description
$user_id integer
$blog_id integer 1

Not Used

$category_id integer 'None'

Not Used

Returns

boolean

WordPress Developer Newsletter

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