-
Notifications
You must be signed in to change notification settings - Fork 19
friends_get_comments
github-actions[bot] edited this page Jul 28, 2026
·
28 revisions
This template contains the comments content in the footer for an article on /friends/.
add_filter(
'friends_get_comments',
function(
$comments,
$_post_id
) {
// Your code here.
return $comments;
},
10,
2
);$comments-
$_post_idOther variable names:$post_id
apply_filters(
'friends_get_comments',
get_comments(
array(
'post_id' => $_post_id,
'status' => 'approve',
'order' => 'ASC',
'orderby' => 'comment_date_gmt',
)
),
$_post_id
)apply_filters(
'friends_get_comments',
get_comments(
array(
'post_id' => $post_id,
'status' => 'approve',
'order' => 'ASC',
)
),
$post_id
)