=== Course Studio ===
Contributors: cforjstudio
Tags: course, elearning, scorm, interactive, gutenberg-block
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed interactive courses and SCORM lessons from Course Studio on any WordPress site. Gutenberg block, shortcode, oEmbed.

== Description ==

Course Studio is a no-code authoring tool for interactive learning — quizzes, flashcards, branching scenarios, drag & drop, hotspots — that exports to SCORM, xAPI, and embeddable web courses.

This plugin lets you drop Course Studio courses into any WordPress page or post using:

* **Gutenberg block** — search "Course Studio" in the block inserter, paste a course ID
* **Shortcode** — `[course_studio id="YOUR_COURSE_ID"]`
* **oEmbed** — paste a cforj.studio share link directly into a post

Accounts, billing, and course management live in a unified dashboard we open directly from Settings → Course Studio.

= Features =

* Gutenberg block with live preview
* Classic shortcode with `id`, `height`, `width`, and `resize` attributes
* Auto-height iframe — courses grow with content, no scrollbars
* Multiple embeds on the same page
* Works with any WordPress theme

= Why Course Studio? =

Course Studio is the easiest way to build interactive learning apps and SCORM courses. The core engine is open source (AGPL-3.0). Cloud plans unlock AI authoring, analytics, and collaboration.

Learn more at https://cforj.studio

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/course-studio/`, or install via Plugins → Add New → Upload.
2. Activate the plugin from the Plugins screen.
3. Go to **Settings → Course Studio** and click "Open Course Studio dashboard" to sign in. Your WordPress install is linked to your cforj account automatically.
4. Insert courses using the Gutenberg block or shortcode.

== Frequently Asked Questions ==

= Do I need a Course Studio account? =

Yes. Courses are hosted on Course Studio. A free Community account is enough to start embedding.

= Is this plugin free? =

Yes. The plugin is GPL-2.0-or-later. Your Course Studio account plan is separate — there is a permanently free tier.

= Does it work with the classic editor? =

Yes. Use the shortcode: `[course_studio id="YOUR_COURSE_ID"]`.

= Can I use it with WooCommerce? =

Yes. Install the companion plugin **Course Studio for WooCommerce** to sell courses as WooCommerce products with automatic access on purchase.

= How do I get a course ID? =

Open your course in Course Studio — the ID appears in the URL and on the course card in your dashboard.

= Does it track completions? =

Completions are tracked inside Course Studio. Open your course's Analytics dashboard to see results. SCORM exports also report progress to any SCORM-compatible LMS.

= What data is sent to Course Studio? =

Course Studio only receives the course ID you embed. Visitor identifiers are not sent unless you explicitly pass a learner ID via the SDK API.

== Screenshots ==

1. Gutenberg block with course picker
2. Course Studio settings page in WordPress admin
3. An embedded course rendered on the frontend

== Changelog ==

= 0.1.0 =
* Initial release
* Gutenberg block
* `[course_studio]` shortcode
* oEmbed provider for cforj.studio share links
* Integration dashboard — single sign-in from WP admin

== Upgrade Notice ==

= 0.1.0 =
First public release.

== External services ==

This plugin connects to Course Studio (https://cforj.studio), operated by cforj, to embed interactive courses and SCORM lessons.

**What data is sent, and when**

* When a visitor loads a page with an embedded course, their browser downloads the Course Studio Embed SDK from `https://app.cforj.studio/api/embed-sdk/coursestudio.umd.js` and the course content from `https://app.cforj.studio/embed/<course_id>`. Standard HTTP request metadata (IP address, user agent, referer) is sent as part of this request.
* When you click "Open Course Studio dashboard" in WordPress admin, a new tab opens at `https://app.cforj.studio/integration` with your WordPress user ID and site URL as URL parameters so the install can be linked to your Course Studio account.
* The plugin does not transmit post content, visitor emails, or any other personal data.

**Policies**

* Terms of Service: https://cforj.studio/terms
* Privacy Policy: https://cforj.studio/privacy

By embedding a course you agree to these terms on behalf of your site visitors.
