DocsOForumReactions
Reference

Reactions

OForumorravo.com/docs/oforum/reactions

Emoji reactions are stored in wp_of_reactions (reply_id, user_id, emoji, timestamp). Toggling the same emoji removes the reaction (toggle behavior).

Configuring emojis

Go to Settings → Reactions → Available Emojis and enter a comma-separated list. Default: 👍,❤️,😂,🔥,💡.

PHP API

php// Toggle a reaction
$result = OF_Reactions::toggle($user_id, $reply_id, '👍');
// Returns: ['action' => 'added'|'removed', 'counts' => ['👍' => 3, ...]]

// Get reaction counts for a reply
$counts = OF_Reactions::get_counts($reply_id);
// Returns: ['👍' => 3, '❤️' => 1]

// Get emojis a user has reacted with on a reply
$user_reactions = OF_Reactions::get_user_reactions($user_id, $reply_id);

REST API

POST /wp-json/oforum/v1/reactions with body { "reply_id": 42, "emoji": "👍" } (auth required).


Reactions — OForum Docs — Orravo