-
Notifications
You must be signed in to change notification settings - Fork 94
Notes support #551
Copy link
Copy link
Closed
Labels
command:commentRelated to 'comment' commandRelated to 'comment' commandscope:documentationRelated to documentationRelated to documentationscope:testingRelated to testingRelated to testing
Metadata
Metadata
Assignees
Labels
command:commentRelated to 'comment' commandRelated to 'comment' commandscope:documentationRelated to documentationRelated to documentationscope:testingRelated to testingRelated to testing
Type
Fields
Give feedbackNo fields configured for issues without a type.
WordPress 6.9 introduces a notes feature, which are comments that can be attached to individual blocks. This enables asynchronous collaboration and more efficient editorial workflows.
Under the hood they're indeed just like comments, with the custom "note" comment type.
There's some logic in core so that notes aren't shown by default when you run
wp commentlist, but you can get notes for a specific post usingwp comment list --type=note --post_id=<id>Replies to a note have its ID as the parent.
"Resolving" a note is done by adding another "comment" with
_wp_note_statusmeta being set toresolved, parent ID is also set. Reopening will add one withreopen. A regular note doesn't have that comment meta.It might be worth adding some Behat tests to cover this (using
@require-wp-6.9), as well as adding some examples to the comment command docblocks specifically for notes, so that people can more easily discover how to manage them with WP-CLI.