xprofile_delete_field_group( int $field_group_id )

Delete a specific profile field group.

Parameters Parameters


(int) (Required) Field group ID to delete.

Top ↑

Return Return


Source 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();

Top ↑

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.