# 10.1 Create a new WordPress user from Workflow

Let's see how to create a new WordPress user directly from a workflow. There are 2 ways to do this.&#x20;

1. Install our pre-built snapshot: You need to install our membership snapshot using this link: [membership snapshot](https://affiliates.gohighlevel.com/?fp_ref=spiritual-acceleration-42\&share=MTZVC2JjL7Yk01JC7V2k). When you install this snapshot, you will get a workflow folder named M**embership Website Workflows (WP)**. Inside this folder, you will find a few workflows, including one named **Create a new WordPress user**. In the Settings->Custom Value section, you will find a custom value named **membership\_wp\_website\_link**. _<mark style="background-color:yellow;">You must update the value of this 'custom value' to your website URL.</mark>_ You need to set your workflow trigger to control when the new WordPress user will be created. you can follow the screenshot in the next section.
2. Create a workflow for this: Create a workflow, configure the **trigger,** set the webhook with the POST method, set the destination URL to your website link, and add a custom data parameter **lcw\_create\_wp\_user** with the value **1.** Please follow the 2 screenshots:

Screenshot 1: The Workflow

<figure><img src="https://660943784-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz05QvQmZlyr3X728HXAZ%2Fuploads%2F9kHQWyhFMQHKrQlIeop2%2FThe%20create%20new%20wp%20user%20Workflow.png?alt=media&#x26;token=8ee57e0f-b7bd-4166-b5fd-f4f5cfc1bb94" alt=""><figcaption></figcaption></figure>



Screenshot 2: The webhook settings

<figure><img src="https://660943784-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz05QvQmZlyr3X728HXAZ%2Fuploads%2FLDngLEYJcWokLumIlHAz%2FLC%20Wizard%20-%20create%20a%20WP%20user.png?alt=media&#x26;token=175bff30-4588-46ab-a5db-c1bd3e6a6782" alt=""><figcaption></figcaption></figure>

**The webhook:** you need to set up a webhook that sends the data of a contact to your website. In this webhook, set the **METHOD** to POST, the **URL** to your website URL(you can directly paste your website URL, we recommend creating a custom value and adding the custom value instead of the direct URL), and finally the custom data parameter **lcw\_create\_wp\_user** with the value **1.** This will create a new user in WP with the following data

1. username: Email Address
2. email: Email Address
3. password: GHL contact ID

Now, you can send login credentials to your customers; however, we strongly recommend providing them with an auto-login link that redirects to a password reset page. The auto-login feature is explained in detail in Article 10.2.



