Contents

Demo Data - Plugixa Recipe

Read this before clicking anything

Reset Demo Data is destructive, and it is not limited to demo content. It TRUNCATEs 21 tables and then re-seeds them. Every recipe, category, cuisine, review, rating, collection, shopping list, saved view and saved shortcode in the install is deleted, whether the seeder created it or you did. There is no undo, no “demo only” flag, and no confirmation beyond the button itself.

Use it on a fresh install or a throwaway staging site. Never run it on a site with real content you have not backed up.

The Demo Data tools are part of Pro. They exist so an empty install can be turned into something worth looking at in one step, and so the screenshots in this documentation have consistent content behind them.

What you get

Eighteen fully populated recipes, seven categories, sixteen cuisines, their ingredients, grouped instructions and nutrition rows, plus likes, ratings and a handful of reviews, with images sideloaded into the media library.

The eighteen recipes are:

Classic Margherita Pizza Thai Green Curry Quinoa Buddha Bowl
Black Bean Tacos Grilled Salmon Chocolate Mousse
Chicken Katsu Caesar Salad Butter Chicken
Mapo Tofu Gazpacho Falafel Wrap
Korean Bibimbap Vietnamese Pho Spanakopita
Lamb Tagine Acai Bowl Mango Lassi

The seven categories are Quick & Easy, Healthy, Comfort Food, Party, Holiday, Weeknight Dinners and Meal Prep.

Seeded reviews are always written with a status of pending, so nothing appears on the public site until you approve it.

Where the control is

Recipes → Settings → Advanced, in the Data Management section that Pro adds to that tab.

The button is hidden by default. Switch on Show “Reset Demo Data” button below first, and the Reset Demo Data button appears underneath it. That two-step arrangement is deliberate: it is the only thing standing between a stray click and an empty database.

There is no Load Demo Data button, and no separate Remove Demo Data button. Reset is the only control, and seeding happens as the second half of it.

What Reset actually does

  1. Ensures every table and column exists (Activator::maybe_create_tables()).
  2. TRUNCATEs 21 tables: shopping list items and lists, collection links and collections, likes, favourites, SEO analysis, reviews, nutrition, instructions, ingredients, meta, custom fields, the recipe-to-course, -cuisine and -category links, categories, recipes, shortcodes, views and cuisines.
  3. Clears the stored image ids and nulls every cuisine image.
  4. Re-seeds the default views, then the demo recipes, categories, cuisines, reviews and shortcodes.

Because step 2 truncates rather than filters, anything you created yourself in those tables is gone with the rest.

The REST endpoint

DELETE plugixa-recipe/v1/settings/demo-data

It requires the settings capability. The DELETE verb is accurate: this is a destructive call that happens to re-seed afterwards, not a “load” call.

Customizing the seeder

The source is pro/includes/class-demo-data.php and the recipe data is written as plain arrays, meant to be read and edited. You can change the recipe arrays, add or remove cuisines, and replace the image URLs with your own; the sideloader downloads whatever URLs it is given.

Re-running Reset after editing gives you the new seed, with the same caveat: it truncates first.

Quick Links