Webbanditten

Untitled

Aug 10th, 2020
1,044
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. add_filter( 'frm_csv_columns', 'move_id_column', 10, 2 );
  2. function move_id_column( $headings, $form_id ) {
  3.   if ( $headings['id'] ) {
  4.     $temp_id = $headings["id"];
  5.     unset($headings["id"]);
  6.     $headings = array_merge(["id" => $temp_id], $headings);
  7.   }
  8.   return $headings;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment