Function: user_can_delete_post_comments

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

Whether user can delete a post.

Parameters

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

Not Used

Returns

boolean

returns true if $user_id can delete $post_id's comments

WordPress Developer Newsletter

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