BP_XProfile_Field::delete_children()
Delete all field children for this field.
Description
Source
File: bp-xprofile/classes/class-bp-xprofile-field.php
public function delete_children() {
global $wpdb;
$bp = buddypress();
$sql = $wpdb->prepare( "DELETE FROM {$bp->profile->table_name_fields} WHERE parent_id = %d", $this->id );
$wpdb->query( $sql );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.2.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.