User Notes Shortcodes
Overview
This article describes how to utilize the shortcode in the extension User Notes. The user notes shortcodes display the add note form as well as the notes created by the current login user.
Shortcodes
[um_user_notes_add]
A form to add a new note is displayed by this shortcode.
[um_user_notes_view]
This shortcode displays notes created by the currently logged-in user. If the user_id
is not specified, a list of public notes from all users is displayed for guests.
Attributes
Key | Type | Default | Description |
user_id | integer | Current profile ID (on profile page) or current logged-in user ID |
The user ID. |
|
|
[um_user_notes_single_view note_id=”{int}”]
This shortcode displays a specific note. You can find the Note ID in the notes grid on the user profile tab. Note IDs are only visible to the administrator. They are not visible to the notes author or any other users. Only administrators have the access required to view Note IDs, ensuring that these IDs remain secure and are only used for administrative purposes.
Attributes
Key | Type | Default | Description |
note_id | integer | note ID on the user profile tab Notes in view notes subtab |
The specific note ID. |
Sample usage: