Since 2.1.0, LH CRM keeps committee notes about members. A note lives on one site, is never public, and can be read only by people with read_member_notes and written only by people with edit_member_notes. Both capabilities are granted at run time to the site’s committee roles, which are administrators by default. They are not saved to any role, so taking a role off the list removes access straight away. Super admins have them on every site.
subject rows in the people table.lh_note_type taxonomy.A note is archived once its expiry date has passed, measured in site time. Nothing is ever deleted and no post status changes, so the date and the state always agree. When you archive a note, its expiry is set to yesterday, unless it has already expired. Unarchiving clears the expiry. Lists show only current notes unless you ask for archived ones. Asking for the notes current on a given day applies both dates, which answers questions like who is unavailable on a match day.
The Member Notes screen sits under Contact Forms. It has About and Expires columns, Current and Archived views, and a Note Details box where members can be entered by user ID or email address. Notes are kept out of the sitemaps and out of LH Archived Post Status, LH Post IP taxonomy and LH Wayback Machine.
When LH Audit Trail is active, every add, change, archive and permanent deletion is recorded against each member the note is about. The log entries never include the note’s text, only which fields changed. Entries are kept indefinitely, can be read only by people with read_member_notes, and are not shown to the member.
Write every note as if the member might read it one day. Tie opinions to what happened, use no labels, and record no health information or other sensitive personal details.
lh_crm_return_committee_roles: the roles given the notes capabilities. Default ['administrator'].lh_crm_return_note_types: the note types, as slug => label.lh_crm_return_note_post_type, lh_crm_return_note_type_taxonomy: the identifiers, by default lh_member_note and lh_note_type.The abilities are lh-crm/list-notes, add-note, update-note and archive-note. All are site-scoped, and their reference is generated with the rest of the plugin’s abilities.