groups_get_id_by_previous_slug( string $group_slug )

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

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_by_previous_slug( $group_slug ) {
	return BP_Groups_Group::get_id_by_previous_slug( $group_slug );

Top ↑

Changelog Changelog

Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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