This function has been deprecated. BuddyBoss 1.0.0 instead.

bp_nouveau_get_group_description_excerpt( object $group = null, int $length = null )

Filters the excerpt of a group description.

Description

Checks if the group loop is set as a ‘Grid’ layout and returns a reduced excerpt.

Parameters

$group

(Optional) The group being referenced. Defaults to the group currently being iterated on in the groups loop.

Default value: null

$length

(Optional) Length of returned string, including ellipsis. Default: 100.

Default value: null

Return

(string) Excerpt.

Source

File: bp-core/deprecated/buddyboss/1.0.php

function bp_nouveau_get_group_description_excerpt( $group = null, $length = null ) {
	global $groups_template;

	_deprecated_function( __FUNCTION__, '1.0.0' );

	// if ( ! $group ) {
	// 	$group =& $groups_template->group;
	// }

	// /**
	//  * If this is a grid layout but no length is passed in set a shorter
	//  * default value otherwise use the passed in value.
	//  * If not a grid then the BP core default is used or passed in value.
	//  */
	// if ( bp_nouveau_loop_is_grid() && 'groups' === bp_current_component() ) {
	// 	if ( ! $length ) {
	// 		$length = 100;
	// 	} else {
	// 		$length = $length;
	// 	}
	// }

	// /**
	//  * Filters the excerpt of a group description.
	//  *
	//  * @since BuddyPress 3.0.0
	//  *
	//  * @param string $value Excerpt of a group description.
	//  * @param object $group Object for group whose description is made into an excerpt.
	//  * @param object $group Object for group whose description is made into an excerpt.
	//  */
	// return apply_filters( 'bp_nouveau_get_group_description_excerpt', bp_create_excerpt( $group->description, $length ), $group );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 BuddyBoss 1.0.0
BuddyPress 3.0.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.