Support » Plugin: WP-Members: Membership Framework » Registration Fields Export Extra Columns with Commas

  • I wanted to know if anyone else has run across an issue when people fill out the registration form and they add commas in the fields that those commas get turned into extra columns. Since WP-Member’s use comma delimited to create the .csv file. I tried adding the str_replace code below the “// get the fields” line in wp-members-export.php to replace the comma’s with a space. But it doesn’t seem to work.

    // get the fields
    $wpmem_fields = get_option('wpmembers_fields');
    $wpmem_fields = str_replace (","," ",$wpmem_fields);

    My goal would be to replace all commas in the $wpmem_fields with a space before it’s exported as a .csv file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just ran into that problem, too. I’m wondering if I can export data separated by Tab or semi-colon instead of comma.

    Plugin Author Chad Butler

    (@cbutlerjr)

    That is in interesting dilemma. There may be a way we can work around that, but I’ll need to look into it.

    The entire export process is on the project list for some overhaul anyway, so this will be added to the list.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Registration Fields Export Extra Columns with Commas’ is closed to new replies.