This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BBP_Converter_Base::get_fields( $tablename )

This method grabs appropriate fields from the table specified



(string) (Required) The table name to grab fields from


File: bp-forums/admin/converter.php

	private function get_fields( $tablename ) {
		$rval        = array();
		$field_array = $this->wpdb->get_results( 'DESCRIBE ' . $tablename, ARRAY_A );

		foreach ( $field_array as $field ) {
			$rval[] = $field['Field'];

		if ( $tablename == $this->wpdb->users ) {
			$rval[] = 'role';
			$rval[] = 'yim';
			$rval[] = 'aim';
			$rval[] = 'jabber';
		return $rval;


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.