get_pending_comments_num

SummerySummery

Get the number of pending comments on a post or posts

Syntax

get_pending_comments_num( int|array $post_id )

ParametersParameters

$post_id

(int|array) (Required) Either a single Post ID or an array of Post IDs

ReturnReturn

(int|array) Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs

SourceSource

File: wp-admin/includes/comment.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top