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.


Top ↑

Parameters Parameters

$args

(array) (Optional) See BP_XProfile_Group::get() for description of arguments.

Default value: array()


Top ↑

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 );
}


Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.