• Hello,

    I’m searching to change the CSV separator used when I export users but I haven’t found a solution. I would like to know if this is possible, and if it’s not, could you please add this feature ? I think it would be very simple, I’ve located the line to modify :

    fputcsv( $handle, $row ); wp-members/includes/admin/class-wp-members-user-export.php (line 251)

    Replaced by :

    $separator = ',';
     $separator = apply_filters('wpmem_user_export_separator', $separator);
    
     fputcsv($handle, $row, $separator);

    Thanks by advance for your answer !

    • This topic was modified 2 years, 4 months ago by pierret76.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    I’m open to adding the ability to customize the separator, but it will likely be something added to the existing filter for the export setup (“wpmem_export_args”). I have added it to the list for review and I’ll make a decision on how it will be included in the next release.

    I don’t normally suggest hacking the code as that will be overwritten in an update (among other reasons). However, if you need to do something in the short term, that’s your option. Whatever the change is for inclusion, it will be noted in the release notes of the update it’s included in.

    Thread Starter pierret76

    (@pierret76)

    Hi Chad,

    Thanks for your answer and adding this new feature ! I think it will be very useful for some people.

    I will overwrite the file while waiting for the new release to come out.

    Have a good day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change CSV export separators’ is closed to new replies.