xprofile_delete_field( int|object $field_id )
Delete a profile field object.
Description
Parameters
- $field_id
-
(Required) ID of the field or object representing field data.
Return
(bool) Whether or not the field was deleted.
Source
File: bp-xprofile/bp-xprofile-functions.php
function xprofile_delete_field( $field_id ) {
$field = new BP_XProfile_Field( $field_id );
return $field->delete();
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.1.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.