/** * Read data from file and generate the table */ function wpdatatables_constructor_read_file_data() { $table_data = $_POST['table_data']; $table_data = apply_filters('wpdatatables_before_read_file_data', $table_data); // Create a new Constructor object $constructor = new wpDataTableConstructor(); $constructor->readFileData($table_data); $link = get_admin_url() . "?page=wpdatatables-administration&action=edit&table_id=" . $constructor->getTableId(); echo $link; exit; }