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
| Property | Type | Description |
|---|---|---|
reply_id required | integer | Reply ID. |
reaction_type | string | Reaction 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