BP_Groups_Group::get_id_from_slug( string $slug )

Get the ID of a group by the group’s slug.

Description

Alias of BP_Groups_Group::group_exists().

Parameters

$slug

(Required) See BP_Groups_Group::group_exists().

Return

(int|null) See BP_Groups_Group::group_exists().

Source

File: bp-groups/classes/class-bp-groups-group.php

	public static function get_id_from_slug( $slug ) {
		return BP_Groups_Group::group_exists( $slug );
	}

Changelog

Changelog
Version Description
BuddyPress 1.6.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.