Paid Memberships Pro’s Import Members From CSV Add On lets you bulk-import members and their custom data from a spreadsheet. Most fields map over cleanly: a name, an email address, a single-choice dropdown. Fields that store more than one value, like a Select2 multi-select or a Checkbox Group, need a different format, because a CSV (more...)
Paid Memberships Pro’s Import Members From CSV Add On lets you bulk-import members and their custom data from a spreadsheet. Most fields map over cleanly: a name, an email address, a single-choice dropdown. Fields that store more than one value, like a Select2 multi-select or a Checkbox Group, need a different format, because a CSV cell can only ever hold a single string, not a PHP array.
If the field you are importing is a PMPro User Field, the Import Members From CSV Add On handles multi-value entries for you; this code is not needed. This recipe is for the other case: user meta added by a different plugin, or a custom field that is not a PMPro User Field, where you need to convert a CSV string into a proper array yourself before it saves.

This recipe applies if all of the following are true:
{value1,value2,value3}. Individual values cannot contain a comma, since that is the separator this recipe splits on.The Import Members From CSV Add On runs a filter, pmproiucsv_import_usermeta, on every imported row just before it saves that user’s meta. This snippet hooks into that filter, looks for any value wrapped in curly braces, strips the braces, and splits the remaining string into a PHP array on each comma. Values that are not wrapped in curly braces pass through unchanged.
{value1,value2,value3}.pmproiucsv_import_usermeta FilterThe filter receives two arguments:
$meta (array): the meta key/value pairs about to be saved for the current row.$userdata (array): the WordPress userdata for the row being imported (login, email, and so on).Your callback must return the (possibly modified) $meta array.
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
How to Customize This Code Recipeexplode( ',', $string ) to match.if ( 'your_meta_key' !== $key ) { continue; } inside the loop to limit conversion to a single column.![]()
Author: Andrew Lima
Andrew Lima is the Director of Operations at Paid Memberships Pro, with a strong background in WordPress development. Certified in various programming languages, Andrew has been building WordPress websites since 2014.
He finds it rewarding to help PMPro customers build successful businesses and enjoys seeing their growth over time. Andrew values PMPro’s commitment to strong core values and ethics, which makes working with the team a genuine pleasure.
Outside of work, Andrew enjoys discovering new hobbies, experimenting in the kitchen, and immersing himself in video games.
Have a question about how to use this feature? Our Support Page outlines three ways to get support.
Our Max plans include hands-on help customizing your membership site and implementing new features. Upgrade to PMPro Max now »
Was this article helpful?
YesNo
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | How to Build a Private Vendor Portal or Gated Catalog with Paid Memberships Pro | 0 | 9.29 | 18-09-2026 |
| 2 | Secure Your Member Map With a Private Geocoding API Key | 0 | 6.33 | 17-09-2026 |
| 3 | Offer Members a Discounted Rate for Upgrading to a Higher Level | 0 | 6.53 | 16-09-2026 |
| 4 | Offer Multiple Payment Methods to Increase Conversions | 0 | 7.9 | 21-09-2026 |
| 5 | Scaling for High Traffic Websites: How to Improve WordPress Site Performance | 0 | 9.22 | 21-09-2026 |
| 6 | Разделитель ФИО на фамилию, имя и отчество | 0 | 8.18 | 05-08-2026 |
| 7 | Бэкапы Универсальных списков | 0 | 7.23 | 05-08-2026 |
| 8 | 23 USA & UK Sources for Businesses That Want to Buy LinkedIn Accounts | 0 | 7.97 | 19-09-2026 |
| 9 | 23 USA & UK Sources for Businesses That Want to Buy LinkedIn Accounts | 0 | 7.97 | 19-09-2026 |