WPDev.one
Core Function
View Source on Trac ↗

user_can_delete_post_comments()

user_can_delete_post_comments( mixed $user_id, mixed $post_id, mixed $blog_id = 1 )

Whether user can delete a post.

Parameters 2 required

Name / Type Description
int

$user_id

Required
int

$post_id

Required
$blog_id
int

Not Used

Return Value

(bool)
returns true if $user_id can delete $post_id's comments

Function Information

Since Version
1.5.0
Source File
wp-includes/deprecated.php
Advertisement