Skip to content

How Notes Are Stored

LMS Notes stores everything in standard WordPress structures - no custom database tables.

Each note is a post of the custom post type lcn_notes.

  • The note title is the post title.
  • The note body is the post content.
  • The note author is the learner who created it.

Labels (tags) are terms in the notes_label taxonomy, attached to each note. New labels are created on the fly when a learner types a label that does not yet exist.

Each note records the following meta so it can be shown in context and scoped to the right instructor:

Meta key Contents
course_id ID of the content item the note was taken on (course, lesson, topic, or quiz).
ass_course_name ID of the parent course that content belongs to.
course_note A copy of the note body.
user_id The note author’s user ID.
created_dt The formatted creation date/time string.

A learner’s note for a given content item is cached in a transient keyed as:

lcn_notes_{content_id}_{user_id}

The transient lasts 12 hours and is deleted automatically when the note is deleted, so lists stay accurate.

On first activation the plugin creates two pages if they do not already exist: My Notes ([lcn_notes]) and All Notes ([lms_instructor_notes]).

Uninstalling the plugin does not delete your data: notes (lcn_notes posts), labels (notes_label terms), the plugin’s settings option, and the auto-created My Notes / All Notes pages remain in the database. Remove them manually if you want a clean slate.