xprofile_delete_field( int|object $field_id )

Delete a profile field object.

Parameters Parameters


(int|object) (Required) ID of the field or object representing field data.

Top ↑

Return Return

(bool) Whether or not the field was deleted.

Source Source

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

function xprofile_delete_field( $field_id ) {
	$field = new BP_XProfile_Field( $field_id );
	return $field->delete();

Top ↑

Changelog Changelog

Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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