xprofile_get_field_group( int $field_group_id )
Get a specific profile field group.
Description
Parameters
- $field_group_id
-
(Required) Field group ID to fetch.
Return
(false|BP_XProfile_Group)
Source
File: bp-xprofile/bp-xprofile-functions.php
function xprofile_get_field_group( $field_group_id = 0 ) { // Try to get a specific field group by ID. $field_group = new BP_XProfile_Group( $field_group_id ); // Bail if group was not found. if ( empty( $field_group->id ) ) { return false; } // Return field group. return $field_group; }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.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.