Clanbite Social Kit Abilities

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

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

Input

PropertyTypeDescription
post_id requiredintegerSocial post ID.
reaction_typestringReaction slug (default like).
JSON Schema
{
    "type": "object",
    "properties": {
        "post_id": {
            "type": "integer",
            "description": "Social post ID."
        },
        "reaction_type": {
            "type": "string",
            "description": "Reaction slug (default like)."
        }
    },
    "required": [
        "post_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