=== SCORM Central ===
Contributors: kprise
Tags: scorm, elearning, course, training, lms
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn a PDF, PowerPoint, Word document or video into a course, put it on a page, and track every logged-in user's completion, score and time. No LMS needed.

== Description ==

SCORM Central converts your files into courses and plays them to your WordPress users. You keep your users; SCORM Central plays the course and records the result.

* Upload a PDF, PowerPoint, Word document or video from WordPress admin. It becomes an editable course in SCORM Central.
* Publish it, then add it to any page with the block or `[scormcentral course="123"]`.
* Logged-in users see Start, Resume, or their result. Visitors see a login link.
* Reports per course with CSV export, and `[scormcentral_my_courses]` for learners.

Requires a SCORM Central account and an API key.

== Installation ==

1. Upload the `scormcentral` folder to `/wp-content/plugins/` and activate it.
2. In SCORM Central, under API keys, create a test key and set this site as your test site (or, on a paid plan, a live key and live site).
3. In WordPress, go to SCORM Central > Settings, paste the key(s), tick Test mode while you set up, and click Test connection.

== Frequently Asked Questions ==

= Where are results stored? =

In SCORM Central. The plugin keeps each user's latest status per course in user meta so pages load without calling the service every time.

= Is the API key exposed to visitors? =

No. Every call to SCORM Central is made by your server. Browsers only receive one-time links.

== External services ==

This plugin connects to SCORM Central (https://scormcentral.com), operated by Kprise LLC, to convert files, play courses and record results. When a logged-in user opens a course, their WordPress display name, email address and an internal id (`wp_{site}_{user}`) are sent so results can be reported back to you. Files you upload from WordPress admin are sent to SCORM Central.

== Changelog ==

= 1.3.0 =
* Word (.docx) upload: headings become lessons and sections, with lists, tables and pictures.

= 1.2.0 =
* Test and live keys, Stripe-style: a test key to set up and try courses (learners see TEST MODE), a live key for real learners. Switch with the Test mode setting.
* New shortcode form [scormcentral content="46"]: the same page shows the test course in test mode and the live course in live mode.

= 1.1.0 =
* Courses play inside the page by default, with Full screen and Close. Finishing a course returns the learner to the page with their result.
* "Not published yet" list on the Courses screen: publish a conversion you left, or a course built in the editor.
* Fixed: the Edit / Publish buttons showed before any upload.

= 1.0.0 =
* First release.
