Extend the Comment Edit Link Block with More Moderation Options #53686
Labels
[Block] Comments
Affects the Comments Block - formerly known as Comments Query Loop
Needs Design Feedback
Needs general design feedback.
[Type] Feature
New feature to highlight in changelogs.
What problem does this address?
Currently, we can add the Comment Edit Link Block to our themes to get an Edit link when viewing comments while logged in. However, if we need to perform other actions on the comment, it takes multiple interactions and involves leaving the frontend of the site and the flow of the comments which you may be reading. Actions like trashing a comment, unapproving a comment, or marking a comment as spam can be a one-click action from the frontend.
What is your proposed solution?
For the longest time, I've been making moderation easier on the sites I manage — not all of my blogging fam are as comfortable with all the admin panel forms as I am, and they often read comments by visiting posts themselves to see them in the correct flow.
It would be nice to either be able to expand the Comment Edit Link Block with an option that adds additional moderation buttons or to have a separate block that can be added called Comment Moderation Links Block, for example.
I don't know the first thing about JavaScript programming and making Gutenberg blocks, so I can only offer the code I was using on my pre-FSE sites, which filters the edit comment link to add the other moderation links:
Alternatively (and my preferred option), having the ability to filter the output of blocks just as we could core output before the FSE was a thing would amazing.
It was recommended that I open a request here in this support post.
The text was updated successfully, but these errors were encountered: