117 | | $fields = $wpdb->get_results( $wpdb->prepare( "SELECT id, name, description, type, group_id, is_required FROM {$bp->profile->table_name_fields} WHERE group_id IN ( {$group_ids} ) AND parent_id = 0 ORDER BY field_order" ) ); |
| 117 | $fields_sql = apply_filters( 'bp_xprofile_fields_sql', "SELECT id, name, description, type, group_id, is_required FROM {$bp->profile->table_name_fields} WHERE group_id IN ( {$group_ids} ) AND parent_id = 0 ORDER BY field_order", $group_ids ); |
| 118 | |
| 119 | $fields = $wpdb->get_results( $wpdb->prepare( $fields_sql ) ); |