Super Simple 3 Steps How-To

1. The very first thing you should do in order to get a demo running is creating a template. A template is essentially a clean WordPress installation, ready for your adjustments.

2. After having created a template, click on the template name to get to the WordPress instance. This is the place where you can go crazy: you can log in to the admin area, install themes and plugins, make all kinds of adjustments and install your premium product. When you're satisfied, click on the "Update template" button found at the top of the admin bar.

3. Now you're set and ready to integrate wpdemo in your product page! Simply insert the demo link as an a tag in your page or use our one-call API to request a demo and redirect your customer as soon as the demo is ready to a specific demo-page.

Notice: For most people it is recommended to use the one-call API such that you have more control over which page your user sees initially.

API

Get a fresh demo:

Request

GET https://wpdemo.cloud/api/demoinstance/[TEMPLATE-ID]

You can find the TEMPLATE-ID in the URL of your target template. It usually starts with wp_tmpl_followed by a long integer.

Response

{"name": "DEMO-NAME"}

You will receive a JSON object with the property name. To access the demo you have to construct the demo URL as follows:

https://wpdemo.cloud/[DEMO-NAME]

Notice: You can manipulate the URL as you wish, to redirect your customers directly to a specific page. If your customers should see the WP Admin area instead of the WP frontend you could compose the URL like so:

https://wpdemo.cloud/[DEMO-NAME]/wp-admin