Usergroup field
Quote from maxelio42 on February 2, 2019, 11:04 amHello Asgaros,
Could you please tell me in what table of the database and what is the name of the field that records the user group numbers?
I need to know it because I have to import a huge quantity of users in WP coming from an old forum and would like to import automatically these users in the right usergroups.
Thank you for your answer!
Hello Asgaros,
Could you please tell me in what table of the database and what is the name of the field that records the user group numbers?
I need to know it because I have to import a huge quantity of users in WP coming from an old forum and would like to import automatically these users in the right usergroups.
Thank you for your answer!
Quote from Asgaros on February 2, 2019, 11:07 amHello @maxelio42
Usergroups are stored as taxonomies in theĀ wp_term* tables – the taxonomy-name is asgarosforum-usergroup. You can find the ID of a specific usergroup directly in the usergroup-view of the forum-admin-area.
Hello @maxelio42
Usergroups are stored as taxonomies in theĀ wp_term* tables – the taxonomy-name is asgarosforum-usergroup. You can find the ID of a specific usergroup directly in the usergroup-view of the forum-admin-area.
Quote from maxelio42 on February 2, 2019, 11:16 amThanks for this fast answer!
Have you got an idea of how I can import my users in WP with a CSV file, while taking into account this user group numbers?
In other words, how can I make the link between a user ID and the user group numbers I want to apply to him/her?
Sorry for being so basic, but I’m a beginner with WP… taxonomies are so “weird” things for me!
Thanks for this fast answer!
Have you got an idea of how I can import my users in WP with a CSV file, while taking into account this user group numbers?
In other words, how can I make the link between a user ID and the user group numbers I want to apply to him/her?
Sorry for being so basic, but I’m a beginner with WP… taxonomies are so “weird” things for me!
Quote from Asgaros on February 2, 2019, 11:27 amI think writing a import-script for this in PHP would be more complicated than just re-assigning the users to their groups manually.
In your case I would create the needed usergroups inside Forum -> Usergroups and then assign the users to their corresponding groups via the Users screen. There are bulk-actions available for usergroups in the dropdown which can be used to assign hundreds of them with one click.
I think writing a import-script for this in PHP would be more complicated than just re-assigning the users to their groups manually.
In your case I would create the needed usergroups inside Forum -> Usergroups and then assign the users to their corresponding groups via the Users screen. There are bulk-actions available for usergroups in the dropdown which can be used to assign hundreds of them with one click.