Ulrich Sossou
Forum Replies Created
-
I sent you an update via email. It fixes the issue with importing from the CSV file you sent me. I also released a new version which fixes that bug.
Forum: Plugins
In reply to: [Import Users from CSV] [Plugin: Import Users from CSV] QuestionsAfter some reflexion, I decided not to include that feature in the plugin.
Here is a simple way to do that without modifying the plugin code: https://pubpoet.com/2011/05/28/update-users-import-users-csv/.
Let me know if you have other questions or features requests.
Forum: Plugins
In reply to: [Import Users from CSV] [Plugin: Import Users from CSV] QuestionsIt is possible to Update the user by the user LOGIN?
If the user login is already in WordPress the details is updated?No, but I will definitely add that in the future version.
If not, is there a way I could change in the plugin?
Yes. Find all references of $userdata[‘ID’] in the plugin file import-users-from-csv.php and replace them by $userdata[‘user_login’].
Forum: Plugins
In reply to: [Import Users from CSV] Tried to import…Did you try with the example.csv file?
Forum: Plugins
In reply to: [Import Users from CSV] [Plugin: Import Users from CSV] QuestionsHow can I set the user role? whats the colunm name for that?
The column name is ‘role’. Just put the role name (e.g. administrator, editor, contributor, and so on)
How can I Update de User? Where do I specify the colunm to find for the update key?
The column name is ‘ID’. Just put the ID of the existing user.
You can copy the content to https://pastebin.com/ or upload the file to your server and post the link here, or reply to the email I just sent you.
You are welcome.
Forum: Plugins
In reply to: [Import Users from CSV] [Plugin: Import Users from CSV] Example CSVHi,
The field should be called ‘role’ and its content should have the name of the role (e.g. administrator, contributor, and so on).
This is actually a shortcut, instead of having to use the meta name (wp_capabilities). Thanks for asking. I will update the example.csv file in the next version.
Let me know if you have other questions, bugs reports or features requests.
Please can you show me your test file?
You didn’t remove the first row (where the fields labels are defined), right?
Do you get the same error when you use the example file without modification?
Forum: Developing with WordPress
In reply to: how does the update feature work?The update checker and other admin side update functions are here:
wp-admin/includes/update.php
The upgrade classes are in this file: wp-admin/includes/class-wp-upgrader.php