WPDev.one
Core Function
View Source on Trac ↗

separate_comments()

separate_comments( mixed $comments )

Separates an array of comments into an array keyed by comment_type.

Parameters 1 required

Name / Type Description
$comments
WP_Comment[]

Array of comments

Required

Return Value

(WP_Comment[])
Array of comments keyed by comment_type.

Function Information

Since Version
2.7.0
Source File
wp-includes/comment.php
Advertisement