---
title: "Reset a WordPress Demo Site to Known Content Every Night"
url: "https://wpimportexport.com/reset-wordpress-demo-site-content-pull/"
description: "Keep clean demo content on a master site and pull it back into the demo: changed pages are restored, deleted posts come back, and a schedule repeats it nightly."
type: post
published: 2026-11-23T05:00:00+00:00
modified: 2026-11-10T22:14:50+00:00
categories: ["Content Sync", "Tutorials"]
tags: ["Content Sync", "WooCommerce"]
docs_topics: ["Sync and migration"]
---

# Reset a WordPress Demo Site to Known Content Every Night

A public demo of your theme, plugin or booking app gets messy fast. Visitors rename pages, replace the text with “test test”, delete sample posts and add their own. You need a way to put the demo back to known content, ideally every night, without restoring a full backup that also throws away settings, users and orders. With **Content Sync** in Import Export by RockStarLab, you keep the clean content on a second site, the master, and let the demo pull it back.

**Free:** pull of posts and pages, and schedules for pulls. **PRO:** the same for WooCommerce products and other content types.

## How the reset works

- The **master** site holds the demo content as it should be. Nobody but you edits it.
- The **demo** site is connected to the master and pulls the posts and pages from it.
- A pull overwrites the demo copy of each page with the master version: title, content, featured image and the other fields.
- A schedule repeats the pull every night.

Use Import Export by RockStarLab 2.1.55 or newer on the demo site.

## Our example

The master site has the page Product Tour and two posts. We pushed them to the demo site once. Then we played visitor on the demo: we renamed the page to “Product Tour!!!”, replaced its text, moved the post “Five Things to Try in the Demo” to the Trash and added a post “asdf test post”.

## Step 1: Connect the demo to the master

On the master site, open **Import Export → Content Sync** and copy the URL and API key from **This Site Configuration**. On the demo site, click **Add New Site** and enter them. A connection added on this screen allows both push and pull. See [how Content Sync works](https://wpimportexport.com/how-content-sync-works-api-keys-push-pull/) for the details of keys and directions.

## Step 2: Pull the changed page back

On the demo site, open **Pages**, tick the page and click **Sync Content**. Choose the master site and click **Pull from Site**. The page came from the master, so the plugin remembers where: the row is mapped to the master page, even though the visitor changed the title on the demo.

![Map Posts for Sync: demo page Product Tour!!! mapped to Pull: Product Tour (ID: 75462) from the master site](https://wpimportexport.com/wp-content/uploads/2026/11/01-pull-mapping-1.webp)

_The renamed demo page is still mapped to the master page._

Click **Confirm & Sync**. In our test the page was updated in about 3 seconds, with its original title and text:

![Sync Content: Updated 1 post](https://wpimportexport.com/wp-content/uploads/2026/11/02-page-reset.webp)

_The page is reset._

## Step 3: Bring back deleted posts

A post that a visitor deleted is no longer in the list, so you pull it from the master’s list instead. Open **Posts**, click **Sync Content** without selecting posts, and choose the master site. The posts of the master are listed. Tick the missing ones and click **Pull Selected Posts**:

![Browse Remote Posts on the master site with Five Things to Try in the Demo selected and the Pull Selected Posts button](https://wpimportexport.com/wp-content/uploads/2026/11/03-browse-master.webp)

_Pick the deleted posts from the master list._

The post is created again on the demo. The deleted copy stays in the Trash; empty the Trash to remove it.

![Sync Content: Created 1 post](https://wpimportexport.com/wp-content/uploads/2026/11/04-post-restored.webp)

_The deleted post is back._

## Step 4: Reset every night

Every pull is saved as a job. To repeat it, open **Import Export → Jobs Log → Schedules**, enter a name, choose the pull job as the **Source Job**, set **Recurring**, **Daily** and the time of the first run, and click **Add schedule**:

![Schedules form: name Nightly demo reset, source job #96 content_sync_pull, Recurring, Daily, first execution 21:44](https://wpimportexport.com/wp-content/uploads/2026/11/05-schedule-form.webp)

_Schedule the pull job nightly._

We changed the page on the demo again and waited for the first run. The run pulled the page and reported “Updated 1 post”; the page had the master text again. The schedule shows the last run and the next one:

![Schedules list: Nightly demo reset, Daily, last run with job #98, next run the next day, Active](https://wpimportexport.com/wp-content/uploads/2026/11/06-schedules.webp)

_The first run reset the page._

A schedule repeats the posts and pages of its source job. Make one pull job with all the demo pages and posts, then schedule that job. Schedules run with WordPress cron, which needs visits to the site or a real cron job on the server; see [scheduled imports not running](https://wpimportexport.com/wordpress-scheduled-imports-not-running-wp-cron/) if a run does not start.

## What a pull does not reset

- **Posts that visitors added** stay. In our test, “asdf test post” was still there after the reset. Delete such posts by hand, or check them regularly.
- **Trashed copies** stay in the Trash after the post is pulled again.
- **Settings, users, menus and plugin data** are not part of the pull. For a full reset of those, restore a backup; see [how to back up and restore a WordPress site](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/).

## With an AI agent

An AI agent connected to the demo site through the WordPress MCP Adapter (see [connecting Claude Code to WordPress](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/)) can reset a page on request, for example right before a sales call:

```
Reset the Product Tour page on the demo from the master site.
```

In our run, a visitor had renamed the page to “Product Tour (edited)”. The agent called `rsl-ie/sync-pull-start` for the master page and the demo page, then `rsl-ie/sync-job-status` until the job was completed: “Updated 1 post”, page Product Tour. The demo page had the master title and text again.

## FAQ

### Does a pull create a second copy of a page?

No. A page that came from the master is updated in place, even when its title was changed on the demo.

### Can I reset only some pages?

Yes. A pull and its schedule cover only the pages and posts you selected.

### Are posts that visitors created removed?

No. A pull only creates and updates. Remove visitor posts by hand.

### Is this in the free plugin?

Yes, for posts and pages, including schedules. Products and other content types need PRO.

## Related Guides

- [How Content Sync Works: API Keys, Push and Pull](https://wpimportexport.com/how-content-sync-works-api-keys-push-pull/)
- [Run Content Sync on a Schedule (Automatic Daily Push)](https://wpimportexport.com/schedule-content-sync-daily-push/)
- [Ship Demo Content with a Theme or Plugin: One ZIP Your Customers Can Import](https://wpimportexport.com/ship-demo-content-wordpress-theme-plugin/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
