Skip to content

Add Notes as an "element to copy" option #421

@desrosj

Description

@desrosj

Is your feature request related to a problem? Please describe.

WordPress 6.9 introduces a new feature, Notes, which allows users to leave block-level comments when editing content.

Under the hood, notes are just WP_Comments with the comment_type of note. The post association is made through the comment_post_ID field in each WP_Comment object/database, and a note is associated with a block through block-level metadata.

<!-- wp:paragraph {"metadata":{"noteId":3}} -->
<p>This is some text about the walk I took at the reservoir. </p>
<!-- /wp:paragraph -->

Note (pun intended): After cloning a post, the notes are not shown because of the comment_post_ID pointing to the old one, even though the block-level metadata remains. I've opened #420 for this "bug".

In some cases the user may want the conversations that happened within Notes to also be copied so that they can continue separate from the original post.

Describe the solution you'd like

On the Settings page, there should be an option to also include Notes. There is currently an option to include Comments, but this does not copy Notes because they are explicitly excluded from all areas of Core unless comment_type is explicitly set to all or note.

Image

Why do you think this feature is something we should consider for the Yoast SEO plugins?

This plugin is specifically for cloning posts.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions