bp_get_current_profile_group_id()
Return the current profile group ID.
Description
Return
(int)
Source
File: bp-xprofile/bp-xprofile-template.php
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 | function bp_get_current_profile_group_id() { $profile_group_id = bp_action_variable( 1 ); if ( empty ( $profile_group_id ) ) { $profile_group_id = 1; } /** * Filters the current profile group ID. * * Possible values are admin/profile/edit/[group-id]. * * @since BuddyPress 1.1.0 * * @param int $profile_group_id Current profile group ID. */ return (int) apply_filters( 'bp_get_current_profile_group_id' , $profile_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.