class Reaction_RegistryReaction slug definitions and helpers (mirrors Social Kit’s pattern for integrators).
class final
- Full name
Kernowdev\ClanbiteForums\Forums\Reaction_Registry
Methods
allow_reply_reaction()Whether toggling this reaction on a reply is allowed.allow_topic_reaction()Whether toggling this reaction on a topic is allowed (after registration check).default_types()Core defaults before filters run.emoji_image_url()Address of the flat (Twemoji) image for an emoji, the set WordPress uses for its own emoji fallback.get_type()Definition for one slug or null.get_types_for_rest()Ordered list for REST and block context (labels, emoji, optional icon).get_types()Registered reaction types keyed by slug.icon_url_for()Image address to show for a reaction type: its own icon_url, otherwise the flat image of its emoji.is_registered()Whether this slug is registered after filters.sanitize_slug()Sanitize a reaction slug for storage (matches DB varchar length).
Defined in inc/Forums/Reaction_Registry.php
Changelog
| Version | Description |
|---|---|
| 1.3.1 | Updated. |