bp_blogs_comments_clauses_select_by_id( array $retval )

Only select comments by ID instead of all fields when using get_comments().

Description

See also

Parameters

$retval

(Required) Current SQL clauses in array format.

Return

(array)

Source

File: bp-blogs/bp-blogs-filters.php

function bp_blogs_comments_clauses_select_by_id( $retval ) {
	$retval['fields'] = 'comment_ID';

	return $retval;
}

Changelog

Changelog
Version Description
BuddyPress 2.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.