BP_Groups_Group::get_id_from_slug( string $slug )

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

Description Description

Alias of BP_Groups_Group::group_exists().

Top ↑

Parameters Parameters


(string) (Required) See BP_Groups_Group::group_exists().

Top ↑

Return Return

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

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

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.