Move Member Notes to its own member edit panel - #3665
Draft
dparker1005 wants to merge 1 commit into
Draft
Conversation
Replaces the single Member Notes textarea on the User Info panel with a dedicated Member Notes panel that operates like Order Notes: each entry is timestamped with the author's display name, and entries can be trashed individually. There is no edit-all affordance. Notes are still stored as a string in the `user_notes` user meta — same key as before — using the same `<date> by <author>: <body>` shape order notes use, with notes separated by a blank line. Existing free-form content in `user_notes` is parsed as one or more "Legacy note" entries that can be trashed like any other note. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
Author
|
Holding off on this PR for now. We should consider if having a combined "notes" table for member notes, order notes, and maybe subscription notes is a better design long-term. Also worth taking a look at a plugin like WP Activity Log to see if we want to integrate with an existing solution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
user_notesuser meta (same key as before), using the same<date> by <author>: <body>shape order notes use, with notes separated by a blank line. Existing free-formuser_notescontent is parsed as one or more "Legacy note" entries that can be trashed like any other.PMPro_Member_Edit_Panel_Member_Notesclass — no new public helper functions or DB migrations.Test plan
user_notescontent (free-form text from the old textarea): panel shows it as a "Legacy note" entry. Trashing it removes it fromuser_notes. Adding a new note alongside legacy content works.user_notes.get_user_meta( $user_id, 'user_notes', true )still returns a string after add/delete (verify via WP-CLI or a quickvar_dump), so any add-on / export reading that key is unaffected.\n\nseparator stays unambiguous).pmpro_get_edit_member_capability()cannot add or delete notes.🤖 Generated with Claude Code