- Enter the snippet title
- Then click the Save Changes button.
Note: Do not enter any special characters [!@#$%^&*_(=+-)] into the title.

- Right below the snippet title field, you can see the REST API URI.
- That will look like this:
- https://mywebsite.com/wp-json/post-snippets/my-snippet/{token}/{snippet-title}/{vars}/{shortcode}/{php}/{wptexturize}/snippet?snippet_code={snippet-code}&description={snippet-description}
- Use the following URI parameters to create a snippet
- {token} : 6fB9Ied3Tt8BbLyy
- {snippet-title} : sample-snippet
- {vars}: use 0 for empty or enter comma separated values e.g: bob, rob, den
- {shortcode}: 1 for enable or 0 for disable/empty
- {php}: 1 or 0
- {wptexturize}: 1 or 0
- {snippet-code}: write simple/plain text, HTML, PHP etc.
- {snippet-description}: lorem ipsum is simply dummy text

- Here is the example:
- https://mywebsite.com/wp-json/post-snippets/my-snippet/6fB9Ied3Tt8BbLyy/sample-snippet/rob,bob,den/1/0/1/snippet?snippet_code=<?php $names = array(user1, user2, user3); ?>&description=lorem ipsum is simply dummy text
- Response result should look like this:

- Snippet successfully created
