groups_get_id_by_previous_slug( string $group_slug )

Get a group ID by checking against old (not currently active) slugs.

Description

Parameters

$group_slug

(Required) The group's slug.

Return

(int|null) The group ID on success; null on failure.

Source

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

function groups_get_id_by_previous_slug( $group_slug ) {
	return BP_Groups_Group::get_id_by_previous_slug( $group_slug );
}

Changelog

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