bp_remove_group_type_on_group_delete( int $group_id )

Delete a group’s type when the group is deleted.

Description

Parameters

$group_id

(Required) ID of the group.

Return

(array|null) $value See bp_groups_set_group_type().

Source

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

function bp_remove_group_type_on_group_delete( $group_id = 0 ) {
	bp_groups_set_group_type( $group_id, '' );
}

Changelog

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