Plugin Contributor
Younes
(@vanbom)
Hello @stoimenov00
The generation of CSV files is done internally by Memberpress itself.
To add a custom ‘Discord’ column, it will require a custom manipulation and see if the Plugin MemberPress offers a filter to add it or not.
Thread Starter
Anonymous User 20865134
(@anonymized-20865134)
I have recently contacted the MemberPress support team regarding an issue related to exporting data, and they have requested information about the custom table and meta key used by your plugin.
Could you please provide me with details about where the Discord username data is stored? Specifically, I would like to know the custom table or meta key that your plugin creates to store this information. This is to ensure that the Discord username can be included when exporting data from MemberPress.
If possible, I would greatly appreciate it if you could also provide a code snippet or guidance on how to enable the export compatibility with MemberPress. This would help ensure that the Discord username field is included in the exported CSV file.
Thank you in advance for your assistance. I look forward to hearing back from you soon.
Plugin Contributor
Younes
(@vanbom)
Discord user data is stored in the *__usermeta table, e.g , Discord user name is stored in meta_key _ets_memberpress_discord_username.
how to enable the export compatibility with MemberPress : as I mentioned above, MemberPress itself must offer the possibility to inject a new entry.
If you contacted the MemberPress team, did you ask them which Filter Hook to use for this?
-
This reply was modified 1 year, 6 months ago by Younes.
Plugin Contributor
Younes
(@vanbom)
@stoimenov00 give me your feedback to close this topic
Thread Starter
Anonymous User 20865134
(@anonymized-20865134)
Thank you for your assistance, @vanbom . I have been in contact with the MemberPress team and shared the information you provided. Unfortunately, the issue is still not resolved. They mentioned that you might be able to provide a snippet or code that could enable the inclusion of Discord data in the exported CSV file.
Plugin Contributor
Younes
(@vanbom)
@stoimenov00 I need the MemberPress filter hook to inject our custom field
-
This reply was modified 1 year, 6 months ago by Younes.
Thread Starter
Anonymous User 20865134
(@anonymized-20865134)
Thank you, @vanbom, for your quick response. I had reached out to the MemberPress support regarding this issue, but I’m still awaiting their response. Your prompt assistance is greatly appreciated.
Plugin Contributor
Younes
(@vanbom)
Ok @stoimenov00 Keep me posted on the latest updates.
Thread Starter
Anonymous User 20865134
(@anonymized-20865134)
add filters for the sql query:
$joins = MeprHooks::apply_filters(‘mepr-list-table-joins’, $joins);
Here is an example of a join for meta data:
“LEFT JOIN {$wpdb->usermeta} AS pm_first_name ON pm_first_name.user_id = u.ID AND pm_first_name.meta_key=’first_name'”
Plugin Contributor
Younes
(@vanbom)
I opened a new ticket on github.
It will be added in the next release.
The addition of new feature requires the respect of a procedure which one follows before publishing the Plugin.
https://github.com/expresstechsoftware/connect-memberpress-discord-add-on/issues/142
Thread Starter
Anonymous User 20865134
(@anonymized-20865134)
Hello @vanbom. Thank you for your prompt response and for opening a new ticket on GitHub. I appreciate your attention to this matter and your efforts in addressing the issue.