get_pending_comments_num
get_pending_comments_num ( $post_id )
Parameters:- (int|int[]) post_id Either a single Post ID or an array of Post IDs
Returns:- (int|int[]) Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Gets the number of pending comments on a post or posts.