BP_XProfile_Field::delete_children()

Delete all field children for this field.

Description

Source

File: bp-xprofile/classes/class-bp-xprofile-field.php

647
648
649
650
651
652
653
654
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

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.