bp_xprofile_get_groups( array $args = array() )
Fetch a set of field groups, populated with fields and field data.
Description Description
Procedural wrapper for BP_XProfile_Group::get() method.
Parameters Parameters
- $args
-
(Optional) See BP_XProfile_Group::get() for description of arguments.
Default value: array()
Return Return
(array) $groups
Source Source
File: bp-xprofile/bp-xprofile-functions.php
function bp_xprofile_get_groups( $args = array() ) { $groups = BP_XProfile_Group::get( $args ); /** * Filters a set of field groups, populated with fields and field data. * * @since 2.1.0 * * @param array $groups Array of field groups and field data. * @param array $args Array of arguments used to query for groups. */ return apply_filters( 'bp_xprofile_get_groups', $groups, $args ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |