classes/PodsData.php
public static function get_column_data( $column_name, $table ) {

		global $wpdb;

		$column_data = $wpdb->get_results( 'DESCRIBE ' . $table, ARRAY_A );

		foreach ( $column_data as $single_column ) {
			if ( $column_name === $single_column['Field'] ) {
				return $single_column;
			}
		}

		return $column_data;
	}
public static function get_column_data( $column_name, $table ) {

		global $wpdb;

		$column_data = $wpdb->get_results( 'DESCRIBE ' . $table, ARRAY_A );

		foreach ( $column_data as $single_column ) {
			if ( $column_name === $single_column['Field'] ) {
				return $single_column;
			}
		}

		return $column_data;
	}
public static function get_column_data ( $ column_name , $ table ) { global $ wpdb ; $ column_data = $ wpdb -> get_results ( 'DESCRIBE ' . $ table , ARRAY_A ) ; foreach ( $ column_data as $ single_column ) { if ( $ column_name === $ single_column [ 'Field' ] ) { return $ single_column ; } } return $ column_data ; }
Gets column data information from a table

@param string $column_name Column name.
@param string $table       Table name.

@return array

@since 2.0.0
Gets column data information from a table