xprofile_delete_field_group( int $field_group_id )

Delete a specific profile field group.

Description

Parameters

$field_group_id

(Required) Field group ID to delete.

Return

(boolean)

Source

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

function xprofile_delete_field_group( $field_group_id = 0 ) {

	// Try to get a specific field group by ID.
	$field_group = xprofile_get_field_group( $field_group_id );

	// Bail if group was not found.
	if ( false === $field_group ) {
		return false;
	}

	// Return the results of trying to delete the field group.
	return $field_group->delete();
}

Changelog

Changelog
Version Description
BuddyPress 1.0.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.