Skip to content

SCORM Packages

Learnomy overviewFree + ProGet Learnomy →

Pro feature. Available in Learnomy Pro.

Upload a SCORM 1.2 or SCORM 2004 package as a lesson. Learners play it inside the normal lesson player, and the package’s own completion status and score flow straight into Learnomy progress, so a SCORM lesson counts toward course completion and certificates like any other lesson.

  • Add a SCORM 1.2 or SCORM 2004 course package (a .zip) as the content of any lesson, alongside your video, text, quiz, and embed lessons.
  • Reuse existing SCORM content authored in tools like Articulate Storyline, Adobe Captivate, iSpring, or Rise, without rebuilding it in Learnomy.
  • Let learners launch and complete the package in the lesson player, with automatic resume: they pick up where they left off, at the bookmark and answers the package recorded.
  • Have the package’s completed / passed status and score feed the same progress pipeline as native lessons, so course progress and certificates just work.
  • Optionally gate the Free Mark Complete button on that status (completion_mode = auto_standard) so a learner cannot advance until the package itself reports complete.
  • Track every learner’s status, score, resume location, and time on task from a wp-admin report, and export it to CSV.
  • Preview a SCORM lesson as an instructor or admin without touching a learner’s tracking record.

SCORM package playing as a lesson with the wp-admin tracking report

SCORM is an opt-in module. It is never on by default, so the first step is to enable it.

  1. Go to LMS settings > Modules and enable SCORM (listed under Integrations). Nothing SCORM-related loads until this is on.
  2. Open the lesson you want to hold the package (Learnomy > Lessons, or create a new one) and set its content type to SCORM.
  3. Save the lesson first. The uploader only appears once the lesson exists, because the package is stored against the lesson id. On an unsaved lesson you will see “Save the lesson first, then upload a SCORM package here.”
  4. In the SCORM package field, click Upload a SCORM package (.zip) (or drag a .zip onto the dropzone). The uploader validates the file, then the server reads its imsmanifest.xml.
  5. On success the field shows a summary card: the detected version (SCORM 1.2 or SCORM 2004), the launch file, and the number of SCOs. Use Replace to swap in a new package later.
  6. Publish the lesson. Enrolled learners open it in the lesson player and the package runs in a sandboxed runtime. Their progress, bookmark, and score are saved as they go and restored on their next visit.
  7. Completion comes from the package. A SCORM lesson is marked complete only when its package reports completed or passed for that learner, whatever Completion mode the lesson is set to. There is no Complete button on a SCORM lesson; the lesson shows what to do instead, and a manual complete through the API is refused. Lessons completed before Learnomy 2.3.0 stay completed. See Sections and Lessons.
  8. To see results, go to Learnomy > Pro tools > SCORM Tracking. Filter by lesson or status, page through learners, and use the export link for a CSV.

You can also upload the package from the Pro front-end course builder and through the REST API (see For developers). All three surfaces attach the package to the same lesson.

Under the package summary in the lesson editor, two settings decide how learners open the package. They belong to the lesson, so Replace keeps them.

  • Opens - In the lesson page (the default) shows the package inside the lesson, as before. Full screen over the page shows a Start button instead; it opens the package over the whole screen. The learner closes it with the close button or Esc and is back on the lesson with their progress saved. Opening it again carries on in the same session, and after a page reload the package resumes from its saved place. The button reads Continue once there is saved progress. In a new tab shows a Start in new tab button (Continue in new tab once there is saved progress) that opens the package on its own full-window page, with a slim bar holding the lesson title and a link back to the lesson. Use it for packages that do not fit in a frame or that expect their own browser window. Progress saves as the learner goes; the lesson page’s result line updates while the other tab is open, and when the learner comes back to a lesson they have just finished there, the page refreshes so the curriculum and Next follow. The new tab follows the same access rules as the lesson: someone who may not open the lesson, or is logged out, lands on the lesson page instead. Completion, score, certificates and the tracking report work the same in every mode, and replacing the package keeps the choice.
  • Content size (optional) - width and height in pixels, for packages built at a fixed size such as 1280 x 720 or 1024 x 768 from Storyline or Captivate. The package keeps that shape, is never shown wider than its size, and shrinks to fit a smaller column or phone screen. Leave both empty to fit the space. A width without a height (or the reverse) is ignored.

On a phone, full screen fills the screen edge to edge and the page behind does not scroll.

After the package reports a result, a short line shows above the content (or under the Start / Continue button in full screen mode). It follows the package’s latest result: completed or passed shows “You have completed this lesson. Your progress is saved.”; failed shows “Not passed yet. Your score was 40%. You can try again.” with the learner’s score; anything else shows nothing. In full screen mode, the package’s own Exit closes the full screen view and returns the learner to the lesson; opening it again starts the package again.

The package’s own pages always show on a white background, also when the site or the learner uses dark mode, because SCORM content is made for a white page. The button, the full screen bar and the borders around it follow dark mode.

Developers can set the mode for lessons that have no choice saved with the learnomy_scorm_default_launch_mode filter (return inline, lightbox or new_tab). REST clients read the lesson’s choice from scorm.launch_mode, scorm.width and scorm.height on GET /learnomy/v1/lessons/{id}, and save it by sending extension_fields.scorm with the lesson save, the same as the editor does.

A SCORM package is a small website, and from Learnomy Pro 2.3.1 it runs in a sealed box inside the lesson. It can show its pages, run its scripts, play media, load its own files and talk to Learnomy through the normal SCORM API, but it cannot see or touch anything else on the site. It cannot read the lesson page, the learner’s login or cookies, or act as the person viewing it, even when an administrator previews it. The same box applies if someone opens a package file directly in a browser tab.

What this means when you build or export a package:

  • Finding the SCORM API works as usual. Learnomy puts the SCORM 1.2 API and the SCORM 2004 API_1484_11 object inside the package’s own page, where the standard discovery code (the ADL samples and the drivers in Storyline, Captivate, iSpring and similar tools) finds it. Code that only looks at window.top does not find it.
  • Progress, score and resume save as before. Commit, Finish / Terminate and leaving the page all save through Learnomy.
  • Pages of a package cannot reach into each other. If one page of the package calls a function in another page or frame of the same package (for example a framed page that calls parent.recordScore()), that call is blocked. Each page must use the SCORM API itself. Packages that run as a single page, which is what current authoring tools export, are not affected.
  • No browser storage. localStorage, sessionStorage, IndexedDB and cookies are not available to the package. Keep resume data in suspend_data, which Learnomy saves.
  • No redirecting the whole page. A package cannot navigate the lesson page away. Pop-up windows still open, and they are sealed the same way.
  • Its own files load normally, including scripts, styles, fonts, images, media and data files fetched with fetch or XMLHttpRequest, as long as the request does not ask to send credentials.

Single-page exports work best. Older multi-page packages built as a frameset, where one page reaches into another, may lose those page-to-page features (a score that one page hands to another, for example) even though the package still opens and the SCORM API still works. If an older package stops tracking or shows an error about the SCORM API, re-export it from the authoring tool as a single-page SCORM package and upload it again.

  • SCORM module (LMS settings > Modules) - the on/off switch for the whole feature. Category: Integrations. It requires Learnomy Pro.
  • Supported versions - SCORM 1.2 and SCORM 2004. The version is detected from the package manifest; other standards (for example AICC) are not supported here.
  • Content type - SCORM is added as a selectable lesson content type in the wp-admin lesson editor, the Pro front-end builder, and the API.
  • Maximum package size - defaults to 100 MB. Change it with the learnomy_scorm_max_package_mb filter (return the limit in MB). The uploader enforces the same limit client-side before the upload starts.
  • Who can upload a package (LMS settings > Learning standards > SCORM > Package uploads) - site administrators always can. Turn on Let instructors upload SCORM packages to let instructors upload a package to a lesson in a course they manage. It is off by default, also on a site updated from an earlier version. Packages run sandboxed (see How packages run), so a package an instructor uploads cannot act as the administrator or learner who opens it. While it is off, the lesson editor and the front-end builder show instructors one line saying an administrator attaches the package, instead of an upload button, and an upload through the API is refused. Developers can still widen the administrator rule with the learnomy_scorm_upload_cap filter.
  • Packages uploaded before 2.3.1 - earlier versions let instructors upload packages. To see who uploaded each one, run wp db query "SELECT lesson_id, uploaded_by FROM $(wp db prefix)lrn_pro_scorm_packages WHERE uploaded_by NOT IN (SELECT user_id FROM $(wp db prefix)usermeta WHERE meta_key = '$(wp db prefix)capabilities' AND meta_value LIKE '%administrator%')" and open any lesson you did not expect to check it.
  • Tracking report access - the SCORM tracking report is limited to users who can manage_options (the site owner), because it holds per-learner data. Widen who can see it with the learnomy_scorm_report_cap filter.
  • Tracking report (Learnomy > Pro tools > SCORM Tracking) - per-learner rows showing status (colour-coded: green for passed/completed, amber for in progress, red for failed), score, resume location, time on task, and last-updated time. Filter by lesson and by status, paginated at 20 rows per page, with a nonce-protected CSV export.
  • Preview safety - an admin or instructor who is not enrolled can open and resume a SCORM lesson to check it, but their run is never written to a learner’s tracking record. Only an enrolled learner’s run is tracked.

Uploaded packages are stored in a hardened directory that refuses script execution, under a folder name with a random part that never appears in any link, and their files are served only through a permission-checked route that verifies course access on every asset request. Packages stored by an earlier version are moved to such a folder the first time a learner opens them.

The SCORM module lives in Learnomy Pro at includes/extensions/scorm/. It stores one package per lesson (lrn_pro_scorm_packages) and one CMI state per learner-lesson (lrn_pro_scorm_cmi).

REST routes (namespace learnomy-pro/v1):

Method Route Purpose Gate
POST /scorm/packages Import an uploaded package (multipart with lesson_id + file). Can manage the lesson’s course and has learnomy_scorm_upload_cap (default manage_options).
DELETE /scorm/packages Remove the lesson’s package (row + files). Can manage the lesson’s course.
GET /scorm/cmi Read the learner’s stored CMI state (init + resume). Can access the lesson’s course.
POST /scorm/cmi Persist the learner’s CMI state on commit. Must be enrolled in the lesson’s course.

Content server route - SCO assets stream through the path-based route /learnomy-scorm/{lesson}/{hash}/{key}/{file}. The {hash} is the package’s content hash, so replacing a package automatically busts cached asset URLs. The {key} is a signed access key for the viewing user (valid for about a day), because the package runs in an opaque origin and the browser sends it no login cookie; the route checks the key and then the same lesson access rule as the lesson page. Every response carries Content-Security-Policy: sandbox (no allow-same-origin) and Access-Control-Allow-Origin: *, and HTML pages get the SCORM API shim (assets/js/scorm-shim.js) injected after <head>. The shim and the lesson page talk by postMessage; the lesson page accepts messages only from its own SCORM frame and saves through POST /scorm/cmi, so the REST nonce never reaches the package.

Action - learnomy_scorm_cmi_saved fires after each CMI commit with ( int $user_id, int $lesson_id, array $state ). The Pro Content_Standards_Bridge listens to it and routes a completing status into Free lesson progress, which is the single path that also drives course progress, certificates, and any learnomy_lesson_completed listeners.

Filters:

  • learnomy_scorm_max_package_mb - max package size in MB (default 100).
  • learnomy_scorm_report_cap - capability required to view and export the tracking report (default manage_options).

The content type registers on the Free learnomy_lesson_content_types filter as scorm, so it participates in the standard lesson content-type pipeline rather than a parallel one.