Function: user_can_edit_post

user_can_edit_post( integer $user_id, integer $post_id, integer $blog_id )

Whether user can edit a post.

Parameters

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

Not Used

Returns

boolean

WordPress Developer Newsletter

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