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
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.