groups_get_id( string $group_slug )
Get a group ID by its slug.
Description Description
Parameters Parameters
- $group_slug
-
(Required) The group's slug.
Return Return
(int|null) The group ID on success; null on failure.
Source Source
File: bp-groups/bp-groups-functions.php
function groups_get_id( $group_slug ) { return BP_Groups_Group::group_exists( $group_slug ); }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |