A WordPress 'Feedback' block that uses the Interactivity API to submit feedback on single posts.
Fork it, or download the latest release, and make it your own!
This is an example block that utilizes the upcoming public Interactivity API that will be a part of the WordPress 6.5 release (March 26, 2024). Check out the original Make announcement for the full details.
This block provides a simple form for users to submit a sentiment about a post: 'Love it', 'It is okay', 'Not great', 'Hate it'. The can also submit some feedback with their chosen sentiment.
[!NOTE] You must have WordPress 6.5 Release Candidate running on your site. You can use the WordPress Beta Tester plugin and Local to spin up a quick testing site on your own computer.
.zip
release from this repo's Releases.The plugin uses Block Hooks to attach the Feedback block to a single post template's core/post-terms
. A good way to test this is having the Twenty Twenty Four theme active, or a block theme that you're certain has the core/post-terms
block on each individual post.
render.php
), and little attention was paid to the block's edit.js
.