=== Indigetal Course Workflow Enhancements for Tutor LMS ===
Contributors: indigetal
Tags: tutor lms, lms, gutenberg, courses
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: tutor
Stable tag: 1.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

TutorPress-style settings for Tutor LMS: Gutenberg redirects, lesson discussion tabs, and co-instructor editing—without the premium Course Builder.

== Description ==

**Use Tutor LMS with a native WordPress and Gutenberg workflow.**

Indigetal Course Workflow Enhancements for Tutor LMS is the free WordPress.org companion to [TutorPress](https://indigetal.com/tutorpress). It shares the same `tutorpress_settings` option as the full plugin, so you can start here and upgrade to full TutorPress without re-entering preferences.

**What you get**

* **Shared settings** — Five TutorPress toggles (discussion tab, dashboard links, admin/dashboard Gutenberg redirects, hide frontend builder button)
* **Lessons admin menu** — Quick access to lessons under Tutor LMS in wp-admin
* **Co-instructor editing** — Co-instructors can open and save shared courses, lessons, assignments, and quizzes in the block editor
* **Gutenberg redirects** — Optional backend and frontend dashboard links that open core post editors instead of Tutor's builder screens
* **Lesson discussion tab** — Course Content and Discussion tabs in the lesson sidebar

**How it works**

1. Install and activate [Tutor LMS](https://wordpress.org/plugins/tutor/).
2. Install and activate this plugin.
3. Open **Tutor LMS → Course Workflow** to configure features.
4. (Optional) Enable redirect toggles to use Gutenberg for course editing flows.

**What requires full TutorPress**

* Gutenberg Course Builder (curriculum metabox, course settings panels, quiz modals, React admin bundle)
* Template hierarchy overrides
* Premium integrations shipped with the paid plugin

This plugin is a complete product for its stated scope: native WordPress/Gutenberg course authoring with Tutor LMS, not a trial or feature-locked stub.

**Upgrade path**

1. Configure toggles in **Tutor LMS → Course Workflow**.
2. Install and activate the **full version of TutorPress** when you need the Course Builder (from Indigetal WebCraft, not WordPress.org).
3. Deactivate this plugin (your `tutorpress_settings` values are kept).

Do not run this plugin and full TutorPress together; a dismissible admin notice appears if both are active.

== Screenshots ==

1. Course Workflow settings page under Tutor LMS (five toggles)
2. Lessons submenu in the Tutor LMS admin menu
3. Lesson sidebar with Course Content and Discussion tabs
4. Tutor courses list with backend redirects enabled (Gutenberg post editor targets)

== Installation ==

= Requirements =

* WordPress 6.0 or greater
* PHP 7.4 or greater
* [Tutor LMS](https://wordpress.org/plugins/tutor/) (plugin slug: `tutor`)

= Setup =

1. Install and activate **Tutor LMS**.
2. Upload and activate **Indigetal Course Workflow Enhancements for Tutor LMS** via **Plugins → Add New → Upload Plugin**, or copy the plugin folder to `wp-content/plugins/indigetal-course-workflow-enhancements-for-tutor-lms/`.
3. Open **Tutor LMS → Course Workflow** to configure features.
4. (Optional) Enable admin or dashboard redirect toggles to use Gutenberg for course editing flows.

== Frequently Asked Questions ==

= Is this the same as full TutorPress? =

No. This plugin shares the same settings and UX improvements as the full version. Full TutorPress adds the Gutenberg Course Builder and template hierarchy tools that are not included here.

= Will my settings survive if I upgrade to full TutorPress? =

Yes. Both plugins read and write the `tutorpress_settings` option. Deactivating this plugin and activating full TutorPress keeps your toggle values.

= Does this plugin delete settings on uninstall? =

No. Uninstall removes only plugin-specific housekeeping options. Your TutorPress settings stay in the database for a future install or upgrade.

= Can co-instructors edit courses in Gutenberg? =

Yes, when co-instructors are assigned on a shared course in Tutor LMS. This plugin corrects Tutor's access checks and grants the capabilities needed for the block editor.

== Changelog ==

= 1.0.4 =
* Renamed plugin to Indigetal Course Workflow Enhancements for Tutor LMS for WordPress.org naming compliance
* Text domain updated to `indigetal-course-workflow-enhancements-for-tutor-lms`

= 1.0.3 =
* WordPress.org submission package update

= 1.0.2 =
* WordPress.org review fixes: admin CSS enqueue, lesson sidebar HTML sanitization, and release packaging workflow

= 1.0.1 =
* Preserve lesson featured images and exercise attachments during Gutenberg saves when those fields are omitted

= 1.0.0 =
* Initial WordPress.org release: shared TutorPress settings, lessons submenu, co-instructor editing, Gutenberg redirects, lesson discussion tab, assignment CPT support

== Upgrade Notice ==

= 1.0.4 =
Renamed for WordPress.org compliance. Settings and upgrade path to full TutorPress are unchanged.
