bp_profile_get_field_groups()
Get all profile field groups.
Description
Return
(array) $groups
Source
File: bp-xprofile/bp-xprofile-template.php
function bp_profile_get_field_groups() {
$groups = wp_cache_get( 'all', 'bp_xprofile_groups' );
if ( false === $groups ) {
$groups = bp_xprofile_get_groups( array( 'fetch_fields' => true ) );
wp_cache_set( 'all', $groups, 'bp_xprofile_groups' );
}
/**
* Filters all profile field groups.
*
* @since BuddyPress 2.1.0
*
* @param array $groups Array of available profile field groups.
*/
return apply_filters( 'bp_profile_get_field_groups', $groups );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.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.