Skip to content

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/.

Auto-generated Example

add_filter(
   'friends_get_comments',
    function(
        $comments,
        $_post_id
    ) {
        // Your code here.
        return $comments;
    },
    10,
    2
);

Parameters

  • $comments
  • $_post_id Other variable names: $post_id

Files

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
		)

← All Hooks

Clone this wiki locally