Prototyping with a LifterLMS Sample Course and the Course Generator

Use LifterLMS sample courses, the importer and the built-in course generator to prototype a course site quickly: import ready-made courses, write a course outline as a JSON file, generate it in seconds, and clean up afterwards.

  • Add as a preferred source on Google
Illustration for “Prototyping with a LifterLMS Sample Course and the Course Generator”

Building a course site with no courses in it is guesswork. You cannot judge a theme, a catalog layout or a checkout flow until there is realistic content to look at. A LifterLMS sample course fixes that in minutes, and the course generator built into LifterLMS goes further: it can turn a course outline into real courses, sections and lessons from a single file.

This tutorial is for site builders, agencies and course creators who want to prototype before committing. It covers the ready-made sample courses, importing your own outline, generating courses from code, and cleaning up before launch. The importer and generator behaviour was checked in the LifterLMS 10.3 source.

Why prototype with sample content

Sample content earns its keep in a few specific situations:

  • Choosing or styling a theme. You need courses, lessons, quizzes and a catalog to see how the theme handles them.
  • Planning structure. Seeing 40 lessons in the course builder reveals whether your modules are balanced long before you record anything.
  • Client demos. Agencies can show a working academy on day one, then replace the content.
  • Testing. Checkout, drip, prerequisites, certificates and performance all need content to test against, ideally on a staging site.

If you are still deciding how to organize the course itself, read how to structure an online course in LifterLMS alongside this guide.

Option 1: import a ready-made LifterLMS sample course

LifterLMS offers free courses and templates that download from LifterLMS.com and import in one click. You can reach them in two places.

From the setup wizard

The last step of the setup wizard is headed "Start with a sample course or template...". Tick the courses you want and finish the wizard; they are downloaded and imported into the site. If you skipped it, rerun the wizard from LifterLMS > Status, on the Tools & Utilities tab, with Return to Setup Wizard. Rerunning it does not remove existing content, as the LifterLMS documentation on rerunning the wizard confirms.

From the Import screen

Go to LifterLMS > Import. Below the upload form, a section lists courses and templates you can "Download and import" from LifterLMS.com. Click Download & Import on the one you want. The options include LifterLMS's own quickstart training course and a set of free white-label courses described in the LifterLMS importing documentation.

The plugin also ships a sample export file, sample-data/sample-course.json inside the plugin folder, containing "The Official Quickstart Course for LifterLMS": four sections, 13 lessons and an access plan. It is a useful real-world example of the export format if you plan to write your own files.

After any import, open the course and check its status, its access plans and its author. Imported courses keep the settings in the file, so a template may arrive published, with a free access plan, or both.

Option 2: write your course outline as an import file

Ready-made courses show you what a LifterLMS course looks like, not what yours will look like. For that, describe your own outline in a JSON file and import it. The importer is built on the LifterLMS generator, which accepts much simpler files than a full export.

A minimal file needs a _generator value and a list of courses, each with sections and lessons:

{
  "_generator": "LifterLMS/BulkCourseGenerator",
  "courses": [
    {
      "title": "Bookkeeping Fundamentals",
      "status": "draft",
      "excerpt": "Learn to keep clean books in four weeks.",
      "difficulty": "Beginner",
      "categories": [ "Finance" ],
      "tracks": [ "Small business certificate" ],
      "sections": [
        {
          "title": "Getting set up",
          "lessons": [
            { "title": "Welcome and how this course works", "content": "<p>Placeholder.</p>" },
            { "title": "Choosing accounting software" },
            { "title": "Your chart of accounts" }
          ]
        },
        {
          "title": "Day-to-day bookkeeping",
          "lessons": [
            { "title": "Recording sales" },
            { "title": "Recording expenses" }
          ]
        }
      ]
    }
  ]
}

Save it as outline.json, go to LifterLMS > Import, upload it and click Import. In seconds you have a draft course with two sections and five lessons, filed under the right category, difficulty and track, ready to open in the course builder.

How the generator reads the file:

  • Status defaults to draft for anything that does not specify one, which is the safe choice for a prototype.
  • Terms are matched by name. Categories, tags, tracks and the difficulty are found by name and created if they do not exist. A course gets one difficulty.
  • Authors default to the user running the import. If a file includes author details with an email address that does not match an existing user, the generator creates that user, so check user lists after importing files from elsewhere.
  • Images referenced by URL in the content or as featured images are downloaded into your media library.
  • Everything or nothing. The generator wraps its work in a database transaction and reports errors on the Import screen, such as a missing _generator value.

Use LifterLMS/SingleCourseGenerator instead if the file describes one course at the top level rather than a courses list. Lessons can also include quizzes and courses can include access plans; copy the structure from an export of a real course rather than guessing field names.

Option 3: generate courses from PHP with LLMS_Generator

For repeatable prototypes, such as an agency starter site, generate the outline from code. The same LLMS_Generator class the importer uses is available to your own scripts, and its developer reference lists its methods.

This script builds a course with a configurable number of modules and lessons. Run it with WP-CLI's eval-file command on a staging site:

<?php
/**
 * Usage: wp eval-file llmsx-prototype.php --user=admin
 */

$modules  = 4;
$per_mod  = 5;
$sections = array();

for ( $m = 1; $m <= $modules; $m++ ) {
	$lessons = array();
	for ( $l = 1; $l <= $per_mod; $l++ ) {
		$lessons[] = array(
			'title'   => sprintf( 'Lesson %d.%d', $m, $l ),
			'content' => '<p>Placeholder lesson content.</p>',
		);
	}
	$sections[] = array(
		'title'   => sprintf( 'Module %d', $m ),
		'lessons' => $lessons,
	);
}

$generator = new LLMS_Generator(
	array(
		'_generator' => 'LifterLMS/BulkCourseGenerator',
		'courses'    => array(
			array(
				'title'      => 'Prototype course',
				'categories' => array( 'Prototype' ),
				'sections'   => $sections,
			),
		),
	)
);

if ( is_wp_error( $generator->set_generator() ) ) {
	WP_CLI::error( $generator->error->get_error_message() );
}

$generator->generate();

if ( $generator->is_error() ) {
	WP_CLI::error( $generator->error->get_error_message() );
}

WP_CLI::success( 'Created course IDs: ' . implode( ', ', $generator->get_generated_courses() ) );

The --user=admin flag matters: the generator assigns content to the current user, and without it there is no current user. Every course from this script is a draft in a "Prototype" category, which makes clean-up easy.

The generator also has hooks such as llms_generator_new_course and llms_generator_new_lesson if you want to add extra settings after each post is created, and llms_generator_is_image_sideloading_enabled to stop it downloading images.

Option 4: bulk test data with WP-CLI

When you need volume rather than structure, for example 200 courses to test catalog pagination or caching, the LifterLMS WP-CLI commands include a generate subcommand for each resource. wp llms course generate --count=50 --title="Load test course" creates 50 basic courses through the REST API layer. It creates flat records only, with no sections or lessons, so combine it with the generator above when you need full courses. Our guide to LifterLMS WP-CLI commands covers the options and safety habits.

MethodBest forCreates
Ready-made sample courseSeeing a finished course, theme testingComplete courses with real content
JSON outline via ImportYour own structure, no codeCourses, sections, lessons, terms
LLMS_Generator in PHPRepeatable or parameterised prototypesAnything an import file can describe
wp llms course generateVolume and performance testingMany simple course records

Clean up before launch

Prototype content left on a live site causes real problems: placeholder courses in the catalog and search results, test access plans someone can buy, and empty lessons indexed by search engines.

  1. Prototype on a staging site wherever possible; our article on LifterLMS staging sites explains how to keep payments safe there.
  2. Keep all prototype content in one category, such as "Prototype", so you can find it in one filter.
  3. Delete prototype courses with their lessons, sections and quizzes, and any test access plans.
  4. Remove sideloaded sample images you will not use from the media library.
  5. Delete test users and any users created by imports.
  6. Check your catalog, search results and sitemap while logged out.

If you liked a prototype's structure, keep it as the skeleton of the real course instead: rename the lessons, replace the placeholder content, and publish when ready.

Frequently asked questions

Where do I find the LifterLMS sample courses?

On the last step of the setup wizard, and on the LifterLMS > Import screen, where courses and templates can be downloaded from LifterLMS.com with Download & Import.

Can I import a course outline from a spreadsheet?

Not directly. The importer accepts LifterLMS JSON files only. Convert the spreadsheet into the JSON structure shown above, with a short script or by hand for small outlines.

Will importing a sample course affect my existing courses?

No. Imports create new posts. They may add categories, tags, tracks, difficulties and, if the file includes author details, users.

Can I import from LearnDash, Tutor LMS or Teachable this way?

Not with the core importer, which reads LifterLMS files. Moving from another platform is a migration project; see our LifterLMS migration guide.

What to do next

Import one sample course to see how a finished LifterLMS course looks with your theme, then write your own outline as a JSON file and import it. Within an hour you will have a clickable prototype of your real course that you can review with colleagues or clients.

If you want a reusable starter site for many clients, an importer for your own spreadsheets or another platform's exports, or a full migration, our LifterLMS development team builds those tools on the same generator. Contact us with the outline or export you want to start from.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day