Toggles a reaction on a topic’s opening post (same as REST).
- Ability
clanbite-forums/toggle-topic-reaction- Label
- Toggle forum topic reaction
- Category
- Access
- Checked by a permission callback
Input
| Property | Type | Description |
|---|---|---|
topic_id required | integer | Topic ID. |
reaction_type | string | Reaction slug (default like). |
JSON Schema
{
"type": "object",
"properties": {
"topic_id": {
"type": "integer",
"description": "Topic ID."
},
"reaction_type": {
"type": "string",
"description": "Reaction slug (default like)."
}
},
"required": [
"topic_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