Answers.Body: <p>You can use my <a href="https://wordpress.org/plugins/civicrm-wp-profile-sync/" rel="nofollow noreferrer">CiviCRM WordPress Profile Sync</a> plugin to do this, but I can't guarantee that it'll do them all in one go! You'd have to install the plugin, then set a PHP constant in the main plugin file (because it's a feature only really intended for developers at this stage) to enable this feature. Change line 22 to read:</p>
  
  <p><code>define( 'CIVICRM_WP_PROFILE_SYNC_BULK', true );</code></p>
  
  <p>EDIT: Better yet, add the above line to your <code>wp-config.php</code> file - then you won't have to re-edit the plugin after each update.</p>
  
  <p>You will then be able to select contacts in CiviCRM and use the Bulk Operations menu to "Create WordPress Users from Contacts". I'd recommend limiting the number of contacts you migrate in each run. And that you backup before you try this.</p>
  
  <p>Did I mention that you should backup before trying this? Oh, good!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-27T18:58:13.823Z
Answers.Text: Just a weeee bit, Christian. Thanks. I'll try this out.
  
  And yes, I'll backup.....
Answers.UserDisplayName: Adam Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-09T19:54:02.980Z
Answers.Text: Christian, I just tried your method. Basically I made myself an Individual contact in the Civi DB, then I went and selected "Create WordPress Users from Contacts" from the pulldown, took me to a page called Find Contacts. Clicked the Add button and was then taken to a master list of contacts. Went to Users and I couldn't find me. So something doesn't seem to be working. That is the process, isn't it?
Answers.UserDisplayName: Adam Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-09T22:36:39.250Z
Answers.Text: UPDATE: I now can convert, however, I notice if I have any Civi contacts already as users, I get a DB Error message. The members without user accounts do convert though. So that's good.
  
  Did notice a couple of other issues with the plugin, but I'm going to post those on the plugins page on the WP site. Thanks so far.
Answers.UserDisplayName: Adam Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-10T11:14:54.917Z
Answers.Text: Ah, I didn't connect your username on wordpress.org to this thread! If you're getting errors, I'd recommend that you only select Contacts in CiviCRM that have no WordPress user yet. Though I appreciate the feedback. To repeat, this is only really intended for developers.
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-10T11:44:36.687Z
Answers.Text: Adam: I've updated the plugin on the WordPress repo with a couple of minor changes to the bulk ops process. I'm not 100% sure if they will address the issues you encountered, but they will eliminate some possible causes.
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-21T17:35:31.657Z
Answers.Text: Just to note that the line to change has moved to line 27 - caught me out, but should have read the text!
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-22T20:27:02.880Z
Answers.Text: @MickKahn Try the version on GitHub if you want to try out the rewritten Civi-to-WP functionality. I'll release it on the WordPress plugin directory in due course, but you can try it now if you like https://github.com/christianwach/civicrm-wp-profile-sync
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-23T10:22:51.713Z
Answers.Text: Version 0.2.7 did everything I needed once I'd changed the correct line so happy to wait for a formal release of 0.2.8 as I'm not clear what the changes are.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2016-01-27T15:13:35.297Z
Answers.LastActivityDate: 2020-04-01T14:04:07.610Z
Answers.LastEditDate: 2020-04-01T14:04:07.610Z
Answers.UserDisplayName: Christian Wach
Body: <p>I've seen some example posts here for other CMS', but I haven't seen it explained for a WordPress environment. My situation is I have an Individual DB of 2,500 Contacts in Civi, and I want to turn them all into WP Users. I know I can convert Users into Contacts, but I want to do it the other way around.</p>
  
  <p>Only thing I can think of is I would have to export the Contacts database as a CSV and then import them as Users either with a plugin or PHPmyAdmin. Isn't there some other way?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-15T18:01:37.247Z
Comments.Text: Christian Wach: This actually helps me with my issue, however, I just have a little concern. Is there a way to change the format of the WP user that is created in this process? I want the format to be first initial and last name.
Comments.UserDisplayName: Ali A
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-20T11:50:15.283Z
Comments.Text: Ali - since this isn't an answer to the original question please post it as a new question.  You can include a link to this one.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-16T21:29:57.777Z
Comments.Text: Related: https://lab.civicrm.org/dev/wordpress/-/issues/82
Comments.UserDisplayName: bgm
Tags: <wordpress><contacts><database><user>
Title: WordPress: Creating new WP Users from Civi Contacts
ThreadText: # WordPress: Creating new WP Users from Civi Contacts
  
  (Asked by: username_0 on 2016-01-25)
  
  I've seen some example posts here for other CMS', but I haven't seen it explained for a WordPress environment. My situation is I have an Individual DB of 2,500 Contacts in Civi, and I want to turn them all into WP Users. I know I can convert Users into Contacts, but I want to do it the other way around.
  
  Only thing I can think of is I would have to export the Contacts database as a CSV and then import them as Users either with a plugin or PHPmyAdmin. Isn't there some other way?
  
  **Tags:** wordpress, contacts, database, user
  
  > **Comments:**
  > **username_1**: username_4: This actually helps me with my issue, however, I just have a little concern. Is there a way to change the format of the WP user that is created in this process? I want the format to be first initial and last name.  
  > **username_2**: Ali - since this isn't an answer to the original question please post it as a new question.  You can include a link to this one.  
  > **username_3**: Related: https://lab.civicrm.org/dev/wordpress/-/issues/82  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2016-01-27. Score: 5 | Accepted answer
  
  You can use my [CiviCRM WordPress Profile Sync](https://wordpress.org/plugins/civicrm-wp-profile-sync/) plugin to do this, but I can't guarantee that it'll do them all in one go! You'd have to install the plugin, then set a PHP constant in the main plugin file (because it's a feature only really intended for developers at this stage) to enable this feature. Change line 22 to read:
  
  `define( 'CIVICRM_WP_PROFILE_SYNC_BULK', true );`
  
  EDIT: Better yet, add the above line to your `wp-config.php` file - then you won't have to re-edit the plugin after each update.
  
  You will then be able to select contacts in CiviCRM and use the Bulk Operations menu to "Create WordPress Users from Contacts". I'd recommend limiting the number of contacts you migrate in each run. And that you backup before you try this.
  
  Did I mention that you should backup before trying this? Oh, good!
  
  > **Comments:**
  > **username_0**: Just a weeee bit, username_4. Thanks. I'll try this out.  And yes, I'll backup.....  
  > **username_0**: username_4, I just tried your method. Basically I made myself an Individual contact in the Civi DB, then I went and selected "Create WordPress Users from Contacts" from the pulldown, took me to a page called Find Contacts. Clicked the Add button and was then taken to a master list of contacts. Went to Users and I couldn't find me. So something doesn't seem to be working. That is the process, isn't it?  
  > **username_0**: UPDATE: I now can convert, however, I notice if I have any Civi contacts already as users, I get a DB Error message. The members without user accounts do convert though. So that's good.  Did notice a couple of other issues with the plugin, but I'm going to post those on the plugins page on the WP site. Thanks so far.  
  > **username_4**: Ah, I didn't connect your username on wordpress.org to this thread! If you're getting errors, I'd recommend that you only select Contacts in CiviCRM that have no WordPress user yet. Though I appreciate the feedback. To repeat, this is only really intended for developers.  
  > **username_4**: username_0: I've updated the plugin on the WordPress repo with a couple of minor changes to the bulk ops process. I'm not 100% sure if they will address the issues you encountered, but they will eliminate some possible causes.  
  > **username_5**: Just to note that the line to change has moved to line 27 - caught me out, but should have read the text!  
  > **username_4**: @username_5 Try the version on GitHub if you want to try out the rewritten Civi-to-WP functionality. I'll release it on the WordPress plugin directory in due course, but you can try it now if you like https://github.com/username_4/civicrm-wp-profile-sync  
  > **username_5**: Version 0.2.7 did everything I needed once I'd changed the correct line so happy to wait for a formal release of 0.2.8 as I'm not clear what the changes are.  
  
  ---
  
  