开发者 | brokensmile.2103 |
---|---|
更新时间 | 2025年9月4日 19:23 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
localStorage
, and the average score is auto-calculated and optionally displayed with schema markup.
Built to be lightweight, developer-friendly, and easy to integrate into any theme or custom UI. Now with multi-criteria reviews and an emoji reactions system for richer user interaction.
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
GitHub repository: https://github.com/brokensmile2103/init-review-system
Highlights:
/wp-content/plugins/
/reactions/toggle
now requires login: enforced is_user_logged_in()
and nonce validationpermission_callback
for /reactions/toggle
now only allows logged-in users[init_reactions]
updated: require_login
is always true
, ensuring consistent frontend behaviordisabled
state for buttons; guest users always see counts but cannot interact.is-disabled
style keeps emoji + counts fully visible, while visually indicating login requirementaria-pressed
accurately and support is-active
state for current user reactionid
for total counter span (irs-total-reactions-{post_id}
) to support JS live updates.init-reaction-total
(font weight, spacing, responsive display)aria-live="polite"
for screen reader updatesinit_reactions
table (user↔post map)init_plugin_suite_review_system_get_reaction_types
init_plugin_suite_review_system_reaction_meta_key
dbDelta()
esc_html()
, esc_attr()
, and wp_kses()
for frontend safetyuninstall.php
to clean up plugin options when uninstalledreadme.txt
[init_review_system]
for 5-star voting block[init_review_score]
for average score display/wp-json/initrsys/v1/vote
with conditional login and nonce checklocalStorage
for guest usersAggregateRating