bp_profile_get_field_groups()

Get all profile field groups.

Description

Return

(array) $groups

Source

File: bp-xprofile/bp-xprofile-template.php

1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
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

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.