WordPress Version: 5.4
/**
* Whether user can delete a post.
*
* @since 1.5.0
* @deprecated 2.0.0 Use current_user_can()
* @see current_user_can()
*
* @param int $user_id
* @param int $post_id
* @param int $blog_id Not Used
* @return bool returns true if $user_id can delete $post_id's comments
*/
function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1)
{
_deprecated_function(__FUNCTION__, '2.0.0', 'current_user_can()');
// Right now if one can edit comments, one can delete comments.
return user_can_edit_post_comments($user_id, $post_id, $blog_id);
}