Courses
Members teach and take courses: a few lessons on writing that people finish, a month of travel sketching, a paid class in botanical painting. A course is a set of lessons in sections, each a text, a video, files, an embed, a quiz or an assignment. Members enrol, take the lessons in the course player, write notes as they go, and finish with a certificate if the course gives one. Its team builds it, follows its students and marks what they hand in.
Courses is a component: switch it on under Settings → Components, where Courses has its settings (see the settings below).
The catalogue

Courses in the navigation opens the catalogue: the published courses a reader may see, as cards with a cover, a title, the teacher, the lessons, how long they take and how many students take them. A course that costs something says its price on its card.
The categories of the courses stand above them, and a search with Filters finds a course by its words, its category, its level and its language. A member has My learning at the top, for the courses they take. On a phone the categories, the level, the language and the order are all in the sheet of Filters, beside the search.
A course page

The page of a course says what it is and how to join it:
- Its cover, title and summary, its category, level and language, its lessons and how long they take, how many students it has and who teaches it.
- The one thing a reader can do now: Enrol for free, Ask to join, Buy, Subscribe, See the plans, Accept the invitation, or for a student Start the course and later Continue. A visitor logs in first. On a phone that button stays in a bar at the bottom of the screen.
- The tabs Overview (what you will learn, the lessons, the description, who it is for and what to have before you start), Lessons (the sections and their lessons, with the ones a visitor may open as a preview), Reviews and Discussion (the course space, where its students talk).
- Beside them, what the course includes, its instructors and its space.
A student leaves a course from its page or from My learning. Their place is kept: enrolling again carries on where they were.
The course player

A lesson opens in the course player, the whole width of the page:
- The bar names the course and the lesson, shows how far the student is, steps to the lessons before and after, opens Notes, and has a menu with the course page, the course space, all their notes and Mark as not done.
- The lessons of the course stand on the left, by section, each with its kind and length and whether it is done or begun. On a phone they open as a sheet.
- The lesson, and under it Complete and next (or Next for a lesson that completes itself, as a video watched through), and the replies of students on this lesson.
Each kind of lesson is drawn its own way:
- Text: words, headings, lists, links, code and pictures.
- Video: the course video player, its chapters beside it, and notes at the moment of the video. A video counts as watched at the share of it the settings say.
- Files: worksheets and slides to download.
- Embed: a video, a slideshow, a map or a sandbox from another site, which plays after a click, so nothing loads from that site before.
- Quiz and Assignment, below.
A lesson the student cannot open yet says why: they have not enrolled or bought the course, the course is taken in order and the lessons before it are not done, or it opens on a day or some days after they enrolled (they are told when it opens).
Quizzes

A quiz says how many questions it has, any time limit, the tries left and the score to pass, then Start. Its questions take one answer of several, true or false, a few words, or a written answer the course team marks. Its builder sets when students see the right answers: after each try, once they pass, after their last try, or never. A written answer waits on the Marking page, and the student is told once it is marked.
Assignments

An assignment asks for writing, a link or files, as its builder chooses. The answer is kept as a draft until the student presses Hand in. The course team marks it with points or pass and fail and a comment, or asks for another try, and the student is told.
Notes
Notes are for the student alone. In a video lesson Note at this moment keeps the time of the video with the note, and a press on that time plays from it. All my notes gathers them by lesson, and Download as a file saves them.
My learning

My learning lists the courses a member takes in three groups: In progress, with how far they are and Continue, Not started and Finished. Each has a menu with the course page, their notes and Leave the course.
Finishing a course

A student finishes a course once every lesson it requires is done. Its finish page says so and asks for a review. Show it on my profile puts the course on the Learning tab of their profile. A course with a certificate has the switch of the certificate there instead, which shows the certificate on their profile as well. A lesson added later leaves a finished course finished.
Certificates

A course with a certificate issues it as the student finishes, with their name and the course title as they are then. Its page says whether it is valid, prints alone on one sheet of its paper, and has a QR code of its own address, so anyone can check it. Only its holder opens it until they switch on Anyone with its address can see it, which also shows it on their profile. Its holder may add it to LinkedIn. The course team can revoke a certificate with a reason, and issue one later to those who finished before the course had it.
The site administrators design the certificates under Settings → Components → Courses → Certificates: a design, the paper and its turn, the words and the colour, with a preview beside them.
Teaching

Teaching lists the courses a member builds or teaches, what needs them first at the top: work to mark, a draft ready to publish, a course waiting for approval. Each row has its students, how many finished and what waits to be marked, and one action. A member who may create courses starts one with New course: a title and a summary, and whether it gets a space. Everything else is in its builder.

The course builder

The builder is where a course is made. On the left its outline: sections and lessons, moved by dragging or with the keyboard, each lesson with its kind, its length and whether it is a draft. On the right what is picked: the course settings, a section, or a lesson.
Each lesson has its editor and three choices: Preview (anyone who can see the course opens it), Required to finish, and when it opens (right away, some days after a student enrols, or on a day). A lesson is a draft until it is published, and its students see only published lessons. A quiz lesson holds the quiz editor: its questions, their points and answers, the score to pass, the tries and when the answers show. An assignment lesson says what students hand in (a text, files, a link), how it is marked and when it is due.
The course settings have six tabs:
- Basics: the title, the summary, the cover, the category, level and language, what students will learn, who it is for, what they need before they start, the description, and the course space with its chat.
- Access: how members join (free, by asking, by invitation, bought once, by subscription, or in membership plans), the price, the seats, the days of access and the refund window.
- Schedule: lessons in order, each opening once the ones before it are done.
- Certificate: the one students get when they finish.
- Team: its instructors and assistants. Instructors build the course with its owner, each seeing the changes of the others as they land. Assistants see it as it is built.
- Publish: who finds it in the catalogue, what is left before it can be published, and Publish course.

A course published by a member for the first time may wait for an administrator to approve it, as the settings say.
Selling a course

A course is bought once or by subscription through the site payments (see Payments), or included in the membership plans of the site. A seat is held while its buyer pays, so the last one is never sold twice. Where the settings let instructors sell their own courses, the course owner is paid as Earnings says, less the site fee. Otherwise the site sells every course.
Students and Marking

Students shows the team who takes a course: how far each has come, when they were last active and their marks, found by name, filtered and sorted, and downloaded as a CSV. Requests to join and invitations wait at its top. A student page shows one student in full: their lessons, their tries and their hand-ins. The team can remove a student. Their progress, notes and hand-ins are kept for 30 days in case they are let back in.

Marking gathers what waits for the team: hand-ins and written quiz answers, the oldest first, each marked in place.
Course spaces
A course gets a space, where its team and its students talk, as the settings say and its builder chooses. Students join it as they enrol, and Space chat gives it a Messages tab for all of them. See Spaces.
Notifications
Members are told, in the bell and by email as they choose under their notification settings, when:
- they are added to a course team, or a course team invites them, answers their request to join, removes them or lets them back in,
- a lesson of a course they take opens,
- their quiz answers or their assignment are marked, or they get another try,
- they finish a course, or a certificate is issued, issued again or revoked,
- their access to a course bought for a time ends in a few days, and when it has ended,
and for those who teach, when someone enrols, asks to join, finishes a course or hands in an assignment. Administrators hear of a new course waiting for approval, and its team hears the answer.
Settings → Components → Courses

On the tab Settings:
- Who creates courses: the roles that may.
- New courses wait for an administrator approval: a course a member publishes for the first time waits until an administrator approves it. Administrator courses are published at once.
- New courses get a space, and The certificate a new course gives: what a new course starts with. Its builder can change both.
- A lesson video counts as watched at, in percent.
- Show how many students a course has: on its page and its card in the catalogue. Its team always sees it.
- Students review courses, and when: as soon as they enrol, after a quarter or half of the lessons, or once they finish.
On the tab Selling and reputation:
- Refund window a course on sale starts with, in days.
- Instructors sell their courses: off, the site sells every course. On, each course owner sells theirs and is paid as Earnings says, less the site fee.
- What learning earns where the Reputation component runs: finishing a course, passing a quiz and a certificate.
Forms and fields has the fields of a course, Certificates the designs (see Certificates), and Categories the categories of the catalogue.
Switching Courses off takes away its pages, the player, the builders and Teaching, and puts every course and lesson out of sight. Progress and notes are kept, nothing is deleted, and all of it comes back when it is on again.
Its data
The places of a member in courses, with how each was taken and when it ends, their progress, notes and certificates are in the personal data export of WordPress, and are erased with the member. The orders stay as the payments keep them, a course team keeps its lines without the name, and an erased certificate keeps its code and course alone, its page saying it is no longer valid.
Changing courses
The pages of Poly Community are drawn by the browser from data: one file of each page for every reader, and one answer of data when a member moves to it. Keep a change to Courses that way, so the catalogue, each course and each lesson stay fast. Pages drawn from data gives the rules, the API and a recipe for the page of one item.
Showing more on a course or a lesson
Data and a template, never HTML drawn for one reader. What every reader sees of a course, such as a fact of your own, goes in the data of its row through poly_community_item_row_data and is bound in a template of the page. What one reader alone sees, such as their own progress or their place in the course, is a part registered on poly_community_register_page_data, its answer returning data, bound with state.partHere. What a reader may do, such as enrol, shows by a fact. wp poly-community page-data check kit-course says whether the page of a course is one drawing for a visitor, a member and an administrator, and what to change if it is not, and kit-learn the same for a lesson.
With a coding agent
Give an agent such as Claude Code, Codex or Gemini CLI the page above and ask for the change in its words, then have it run the check. For example: "In Poly Community, show on the page of a course how many of its lessons are videos: add the count to the row of the course through poly_community_item_row_data and bind it in the template of the course page, said in words by a getter. Draw no HTML for one reader in PHP. Run wp poly-community page-data check kit-course and fix what it reports."
In the admin
The settings above, and Settings → Words for any of their texts.
In the Site Editor
With a block theme, open Appearance → Editor:
- Community: Courses, Community: Course, Community: Lesson, Community: My learning, Community: Teaching, Community: Students and Community: Marking are among its pages.
- The page of a course holds Course header (its category, Course title, the review line, Course facts, Course teachers and Course enrol card), then Course tabs with Course details, Course outline, the reviews and Course space card, and beside them Course includes, Course instructors and Course space card again.
- The page of a lesson is the course player: Course player: bar, Course player: lessons, Course player: lesson, Course player: next and Course player: notes.
- Course card, a template part, is each course in the catalogue and in My learning: Course cover, its title, Course teachers, Course facts, the review line and Course: where I stand.
In code
A plugin of your own hears that a student finished a course with poly_community_course_finished, once, as they finish it. This one tells the site owner by email:
function my_site_course_finished( $course_id, $profile_id, $context ) {
$course = Poly_Community()->items->get_item( $course_id );
$student = get_userdata( $context['user_id'] );
if ( $course && $student ) {
wp_mail( get_option( 'admin_email' ), $student->display_name . ' finished ' . $course->title, 'Another student finished a course.' );
}
}
add_action( 'poly_community_course_finished', 'my_site_course_finished', 10, 3 );
The other hooks of Courses, for the finish page and for the kinds of lesson the builder offers, are in Hooks of the components, and Changing a component sets out the ways every component changes.