Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Code example of how to remove the first row from a CSV file that is imported by the CSV to SortTable plugin for WordPress. Add this code you your `functions.php` file.

View gist:5798612
1 2 3 4 5 6 7 8 9 10 11 12
<?php
/**
* CSV to SortTable: Remove First Row
*
* @param array $data
* @return array
*/
function csv_to_sorttable_remove_first_row( $data ) {
array_shift( $data );
return $data;
}
add_filter( 'csv_to_sorttable_data_array', 'csv_to_sorttable_remove_first_row' );
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.