groups_get_slug( int $group_id )

Get a group slug by its ID.


Parameters Parameters

$group_id

(int) (Required) The numeric ID of the group.


Top ↑

Return Return

(string) The group's slug.


Source Source

File: bp-groups/bp-groups-functions.php

function groups_get_slug( $group_id ) {
	$group = groups_get_group( $group_id );
	return !empty( $group->slug ) ? $group->slug : '';
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.