# Register block

## Adding a Register block to a page

To add the Register block to a page using the WordPress block editor,

1. Select the blue plus button to toggle the block inserter.
2. Scroll down to the blocks in the VendorFuel category, or enter "register" in the search bar. If you start to search for "register" you should see a Register block and a Registration Page pattern.
3. Select the Register block to insert it.
4. Select the Save button to update the page.

### Setting a customer role for the Register block

If you wish users who use this registration page to automatically be assigned a role, and thus a customer group, pricesheet, punchout supplier, etc., you can specify a role for this block.

Previously, to set a customer role, you had to add the role ID to a WordPress shortcode. This is now controlled using the WordPress block editor.

To select a customer role for the Register block,

1. Select the Register block in the WordPress block editor.
2. Toggle the block setting so they are visible (usually visible by default).
3. Under the Block > Settings panel, select a Customer Role.
4. After selecting a role, select the Save button to update the page.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vendorfuel.com/blocks/register-block.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
