Skip to content

Notes support #551

@swissspidy

Description

@swissspidy

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 comment list, but you can get notes for a specific post using wp 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_status meta being set to resolved, parent ID is also set. Reopening will add one with reopen. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions