# Manually copying over comments from Wordpress, how do I can create user accounts?

**URL:** <https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654>\
**Category:** WordPress\
**Created:** [Octobre 24, 2017, 12:26 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654 "2017-10-24T00:26:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [Octobre 24, 2017, 1:02 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/2 "2017-10-24T01:02:06Z")

</div>

> [@Quintin\_Par](#):
>
> Is it possible to manually create a user account without touching the command line?

Yes, it can be done with php/WordPress. There is some example code [here](https://github.com/scossar/wp-discourse-wishlist-member/blob/516a3018b97b6bad25559fd2c3302479162a1a45/lib/discourse-wishlist-utilities.php#L165). It assumes that the [WP Discourse](https://github.com/discourse/wp-discourse) plugin is activated. but it could be used without it by supplying values for the `api_key`, `api_username` etc.

Also, take a look at the [Discourse API Docs](http://docs.discourse.org/#tag/Users%2Fpaths%2F~1users%2Fpost).

Depending on when you need this done, the [WP Discourse](https://github.com/discourse/wp-discourse) plugin needs to have an API function added to it for creating Discourse users. Once that’s in place, you’ll be able to call something like `DiscourseUtilities::create_discourse_user( $wp_user );` That can be added soon, It’s needed for allowing the plugin to work with WordPress membership plugins.

---

_[View the full topic](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654)._
