bp_get_new_group_id()
Get the newly created group ID after the creation process.
Description
Return
(int)
Source
File: bp-groups/bp-groups-template.php
5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 | function bp_get_new_group_id() { $bp = buddypress(); $new_group_id = isset( $bp ->groups->new_group_id ) ? $bp ->groups->new_group_id : 0; /** * Filters the new group ID. * * @since BuddyPress 1.1.0 * * @param int $new_group_id ID of the new group. */ return (int) apply_filters( 'bp_get_new_group_id' , $new_group_id ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.1.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.