Templates
LMS Notes uses overridable templates for its front-end output, so you can customize the markup from your theme without editing the plugin.
Template load order
Section titled “Template load order”When the plugin loads a template it looks in this order and uses the first match:
your-theme/notes/<template-name>your-theme/<template-name>lms-notes/templates/<template-name>(the plugin default)
The theme subfolder (notes/) can be changed with the lcn_template_path filter.
Overridable templates
Section titled “Overridable templates”Copy any of these files from the plugin’s templates/ folder into your-theme/notes/ and edit the copy:
| Template | Used for |
|---|---|
single-lcn_notes.php |
The single-note page. |
bp-lms-instructor-notes.php |
The All Notes list (the [lms_instructor_notes] output). |
lms-notes-filter.php |
The filter/search bar on the All Notes page. |
Template hooks
Section titled “Template hooks”lcn_get_template() fires two actions around every include, which you can use instead of copying a whole file:
lcn_before_template_partlcn_after_template_part
Both receive $template_name, $template_path, $located, and $args.
Example
Section titled “Example”Override the single-note template:
- Create the folder
your-theme/notes/. - Copy
wp-content/plugins/lms-notes/templates/single-lcn_notes.phpinto it. - Edit
your-theme/notes/single-lcn_notes.php.
Your copy now loads instead of the plugin default.

