xprofile_get_field_group( int $field_group_id )

Get a specific profile field group.


Description Description


Parameters Parameters

$field_group_id

(Required) Field group ID to fetch.


Top ↑

Return Return

(false|BP_XProfile_Group)


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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