friends_get_comments - akirk/friends GitHub Wiki
This template contains the comments content in the footer for an article on /friends/.
Auto-generated Example
add_filter(
'friends_get_comments',
function(
$comments,
$post_id
) {
// Your code here.
return $comments;
},
10,
2
);
Parameters
$comments$post_idOther variable names:$_post_id
Files
apply_filters(
'friends_get_comments',
get_comments(
array(
'post_id' => $post_id,
'status' => 'approve',
'order' => 'ASC',
)
),
$post_id
)
apply_filters(
'friends_get_comments',
get_comments(
array(
'post_id' => $_post_id,
'status' => 'approve',
'order' => 'ASC',
'orderby' => 'comment_date_gmt',
)
),
$_post_id
)