Back to blog
8 min read Content Sync

Sync Tutor LMS Courses with Lessons and Quizzes Between WordPress Sites

The roastery built a short course on staging with Tutor LMS: “Home Espresso Basics”, two topics, four lessons with videos and a quiz with two questions. Copying it to the live school by hand means recreating every topic, pasting every lesson and typing the quiz questions and answers again. Moving the database would overwrite the students, enrollments and quiz attempts of the live site. We pushed the course with Content Sync instead, and the topics, lessons and quiz came with it.

PRO: pushing courses and other custom post types is part of PRO. Tested with Import Export by RockStarLab 2.2.46 and PRO 2.1.42, Tutor LMS 4.2.1 (free), WordPress 7.1.5.

Short Answer

Connect staging and live in Content Sync. On staging open the WordPress list of courses at /wp-admin/edit.php?post_type=courses, tick the course, click Sync Content, choose the live site and click Push to Site, then Confirm & Sync. The course arrives with its topics, lessons, quizzes and the quiz questions with their answers. Push it again after changes: what was copied before is updated, new lessons are added and lessons you deleted on staging go to the trash on the live site. Pictures in the lessons and the product of a paid course come along, and a pull from the other site brings the same.

What Tutor LMS Stores Where

A Tutor course is not one post. The course is a post of the type courses, each topic is a post under the course, and lessons, quizzes and assignments are posts under a topic. Quiz questions and answers are not posts at all: Tutor keeps them in its own database tables, linked to the quiz by ID. That is why copying the course post alone, or exporting it to a file, leaves an empty course on the other site.

When PRO pushes a Tutor course, it sends the whole tree after the course post and rebuilds it on the other site:

Part What arrives
Course Title, description, excerpt, level, benefits, duration and other course settings
Topics Title, summary and order
Lessons Content, video settings, order and the topic they belong to
Quizzes Settings such as time limit, attempts and passing grade
Quiz questions Question text, type, points, explanation, answers and which answer is correct
Files Pictures in lesson text, featured images, lesson attachments, uploaded lesson videos and answer images, copied to the live media library
Product The WooCommerce product of a paid course, linked to the course on the live site

The IDs that tie them together are rewritten for the live site. A lesson that pointed to course 7894 on staging points to the live course’s own ID after the push.

Step 1: Open the Course List with the Sync Button

Tutor’s own Tutor LMS > Courses page has no bulk actions for other plugins. The standard WordPress list of the same courses does: open /wp-admin/edit.php?post_type=courses on the staging site. Tick the course and click Sync Content:

WordPress list of Tutor LMS courses with Home Espresso Basics ticked and the Sync Content button next to Export
The standard course list has the Sync Content button.

Step 2: Push the Course

Choose the live site and click Push to Site. In Map Posts for Sync keep Create New Post for the first push and click Confirm & Sync:

Map Posts for Sync: Home Espresso Basics, type courses, ID 7894, Remote Site Action Create New Post, Confirm & Sync button
Create the course on the live site.

The first push created the course, both topics, the four lessons and the quiz with its two questions. The result message names the course and counts the parts; this is the message of a later push, after we added a lesson on staging:

Successfully pushed 1 post to the remote site. Course "Home Espresso Basics": topics, lessons and quizzes created: 1, updated: 7, moved to trash: 0, quiz questions: 2, files: 0.

Step 3: Check the Course on the Live Site

The course page on the live site shows both topics with their lessons and the quiz in the same order as on staging:

Course curriculum on the live site: topic Equipment with Grinder and basket and Water, temperature and pressure; topic Your first shot with Dose, yield and time, Espresso check and Taste and adjust
Topics, lessons and the quiz on the live site.

In the database the quiz had both questions with all five answers, and the correct answers were marked as on staging.

Updating the Course Later

We renamed a lesson on staging and added a new one, “Taste and adjust”, then pushed the course again. The message said 1 created and 6 updated, and the live course had the new lesson at the end of its topic, the renamed lesson in place and still one copy of everything else.

Each item the push creates remembers which staging item it came from, so a topic called “Introduction” in several courses, which WordPress saves as introduction, introduction-2 and so on, is still found the next time. Items made by hand on the live site are matched by slug or title.

The quiz questions of a pushed quiz are replaced with the staging list each time, so staging is the place to edit them.

Deleting works the same way. We deleted the lesson we had added, “Tamping myths”, on staging and pushed the course again:

Successfully pushed 1 post to the remote site. Course "Home Espresso Basics": topics, lessons and quizzes created: 0, updated: 7, moved to trash: 1, quiz questions: 2, files: 1.

On the live site the lesson was in the trash, where it can still be restored. Only items that came from staging are moved there; a lesson created on the live site by hand stays.

Pictures and Files in Lessons

The files: 1 in that message is a photo of roasted beans that we had put into the lesson “Dose, yield and time”. The push copied it to the media library of the live site, and the lesson there shows the live copy: the image block points to the live attachment ID and to the live -300x300 size of the file. Featured images, lesson attachments, uploaded lesson videos and answer images are copied the same way. A file the live library already has is reused, so pushing again does not add it twice.

A paid Tutor course is sold through a WooCommerce product, and the course stores that product’s ID. We made “Home Espresso Basics” paid with a product “Home Espresso Basics (course)” for 49 and pushed the course. The message said 2 posts were pushed: the product arrived on the live store with its SKU and price, and the live course was linked to the live product, not to the staging product ID.

Pulling a Course

Content Sync can also pull: on the site that should receive the course, pull it from the other site, and the topics, lessons, quiz questions, files and product come along in the same way. In our test a lesson that existed only on the other site arrived with the pull:

Updated 2 posts. Course "Home Espresso Basics": topics, lessons and quizzes created: 1, updated: 7, moved to trash: 0, quiz questions: 2, files: 1.

With WP-CLI or an AI Agent

The same push runs from WP-CLI. site_id is the connection to the live site, post_type is Tutor’s courses, and the course ID is enough: the plugin finds the topics, lessons, quizzes and questions by itself.

wp rsl-ie ability rsl-ie/connection-list '{}' --user=admin
wp rsl-ie ability rsl-ie-pro/sync-push '{"site_id":1,"post_type":"courses","post_ids":[155939]}' --user=admin

We built a fresh course on our test site with two topics, four lessons and a quiz with two questions and five answers, and pushed it with Import Export by RockStarLab 2.2.64, PRO 2.1.57 and Tutor LMS 4.2.2:

Successfully pushed 1 post to the remote site. Course "Home Espresso Basics": topics, lessons and quizzes created: 7, updated: 0, moved to trash: 0, quiz questions: 2, files: 0.

On the other site the course had both topics, each lesson under its own topic in the staging order, the quiz under the second topic, and both questions with all five answers.

An AI agent connected through the WordPress MCP Adapter does this from a request. Without the plugin, WordPress 7.1.5 gives the agent only three read-only abilities for site, user and environment information, so it cannot create a single post on another site. Pushing the course with its whole tree is an ability of the plugin:

With Import Export by RockStarLab, push the Tutor LMS course "Home Espresso Basics" to the live site with its topics, lessons, quizzes and quiz questions, then tell me how many items were created and updated.

The agent pushes only the course you name, and students, enrollments and quiz attempts are never part of a push.

What Stays on the Live Site

Students, enrollments, progress, quiz attempts and certificates earned are not part of a push. They belong to the live site and are never touched.

FAQ

Can I copy a Tutor LMS course to another WordPress site?

Yes. With Import Export by RockStarLab PRO, push the course from the WordPress course list with Sync Content. Its topics, lessons, quizzes and quiz questions are sent along with it.

Are quiz questions copied?

Yes. Tutor keeps questions and answers in its own tables; the push copies them, including which answers are correct, and replaces the questions of the quiz on the other site.

Does the push overwrite students or enrollments?

No. Students, enrollments, progress and quiz attempts are not part of the push and stay as they are on the live site.

What happens when I push the course again?

Items copied before are updated, new lessons are added, and lessons you deleted on staging go to the trash on the live site.

Are pictures in lessons copied?

Yes. Pictures in lesson text, featured images, lesson attachments, uploaded videos and answer images are copied to the media library of the other site, and the lessons point to the copies.

Can an AI agent copy a Tutor LMS course?

Yes. With Import Export by RockStarLab connected through the WordPress MCP Adapter, an agent pushes the course you name to the other site with its topics, lessons, quizzes and quiz questions.

Get the free plugin on WordPress.org. Course sync is part of PRO.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE