get_charset_collate(); $table_name = $wpdb->prefix . static::$own_prefix . static::$table_name; $sql = "CREATE TABLE $table_name ( ID mediumint(9) NOT NULL AUTO_INCREMENT, "; foreach(static::$fields as $field => $options){ $sql .= $field." ".$options.", "; } $sql .= "PRIMARY KEY (ID) ) $charset_collate;"; return $sql; } }