Clanbite Social Kit Abilities

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

Ability
clanbite-social/toggle-comment-reaction
Label
Toggle social comment reaction
Category
Access
Checked by a permission callback

Input

PropertyTypeDescription
comment_id requiredintegerComment ID.
reaction_typestringReaction slug (default like).
JSON Schema
{
    "type": "object",
    "properties": {
        "comment_id": {
            "type": "integer",
            "description": "Comment ID."
        },
        "reaction_type": {
            "type": "string",
            "description": "Reaction slug (default like)."
        }
    },
    "required": [
        "comment_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/Social_Kit_Abilities.php