Releases: hametuha/anyway-feedback
Releases · hametuha/anyway-feedback
v1.2.1
v1.2.0
Changes
🚀 Features
- Remove jQuery dependency from frontend script.
- Remove js-cookie dependency in favor of native
document.cookieAPI. - Use wp-i18n for JavaScript translations instead of
wp_localize_script. - Change default markup from
<a>tags to<button>tags. Custom markup with<a>tags still works. - New Feature: Add negative feedback reason collection feature. When users click "Useless", a dialog prompts them to provide a reason. The answers will be stored as comments.
- Add REST API endpoint
POST /afb/v1/negative-reason/{post_type}/{object_id}for storing feedback reasons. - Breaking Change: Remove built-in GA4 integration. Use the
feedback.afbcustom event to send data to your analytics service. - Add percentage rate display for feedback results.
- Breaking Change: The custom event format changed from jQuery
.trigger()to vanillaCustomEvent. Listen withdocument.addEventListener('feedback.afb', (e) => { /* e.detail */ }). - Important Requires PHP >= 7.4 and WordPress >= 6.6.
Release 1.1.0
- Change feedback endpoint from admin-ajax.php to REST API.
- Drop jquery-cookie and use js-cookie.
- Remove session_start() from admin screen.
- Support GA4.
- Requires PHP>=7.2 and WordPress >=5.9