groups_get_id( string $group_slug )

Get a group ID by its slug.

Parameters Parameters


(string) (Required) The group's slug.

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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