Clanbite Forums Abilities

Toggles a reaction on a reply (same as REST).

Ability
clanbite-forums/toggle-reply-reaction
Label
Toggle forum reply reaction
Category
Access
Checked by a permission callback

Input

PropertyTypeDescription
reply_id requiredintegerReply ID.
reaction_typestringReaction slug (default like).
JSON Schema
{
    "type": "object",
    "properties": {
        "reply_id": {
            "type": "integer",
            "description": "Reply ID."
        },
        "reaction_type": {
            "type": "string",
            "description": "Reaction slug (default like)."
        }
    },
    "required": [
        "reply_id"
    ]
}

Output

Reaction toggle result (same shape as REST).

Type: object

JSON Schema
{
    "type": "object",
    "description": "Reaction toggle result (same shape as REST)."
}

Defined in inc/Forums/Forum_Abilities.php