| 开发者 |
pento
georgestephanis |
|---|---|
| 更新时间 | 2026年10月31日 00:45 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
reaction comment type), so they
inherit your existing comment moderation. They're also automatically excluded from your theme's
comment list, comment feeds, things like the Recent Comments widget, and the Comments screen in
wp-admin, so they never show up twice or inflate your comment count.
Additional background is at https://make.wordpress.org/core/2016/03/07/reactions/.
Settings
Settings > Discussion gains a Reactions section:
/wp-content/plugins/react, or install through the WordPress
plugins screen directly.No. Reactions are stored as comments, but they're filtered out of your theme's comment list, comment feeds, and comment counts, so they only appear as reactions. They're kept out of Comments in wp-admin too. To find one -- say, to delete it -- choose "Reactions" from the comment type dropdown on that screen.
Yes, by default. If you'd rather they didn't, tick "Users must be logged in to react" in Settings > Discussion. Counts stay visible to everyone either way.
Yes. Set the reactions you want under "Default reactions", then untick "Let visitors react with any emoji". Only your chosen set will be offered and accepted.
Yes -- upload SVG icons under "Custom reaction icons" (this needs WordPress 7.1 or newer). They appear as one-click reactions under your posts, alongside your default emoji.
WordPress sanitizes registered icons quite aggressively, and only keeps <svg>, <path>
and <polygon> elements. It also strips stroke attributes.
That means outline-style icon sets render as solid shapes, and icons drawn with shapes like
<circle> or <rect>, or wrapped in a <g> group, would come out blank or misplaced.
Rather than let that happen silently, uploads that wouldn't survive are rejected with an
explanation. Flatten your artwork to filled paths in your vector editor first.
Your file is never added to your media library, and SVG uploads stay disabled site-wide -- only
the sanitized icon markup is kept.
Development happens at https://github.com/pento/react.
document.addEventListener().
Breaking: removes the react_categories filter -- the new picker manages its own
category grid internally, with no equivalent per-category customization hook.localStorage, never sent except with a reaction request).getElementById() lookups and
treated as trusted markup.react_reaction_created, react_reaction_removed and
react_reaction_count_invalidated actions, and react_reaction_markup,
react_reaction_count_cache_group, and react_reaction_count_cache_ttl filters.