Creates a topic in a forum (same rules and payload as the authenticated REST create-topic endpoint).
- Ability
clanbite-forums/create-topic- Label
- Create forum topic
- Category
- Access
- Checked by a permission callback
Input
| Property | Type | Description |
|---|---|---|
forum_slug required | string | Target forum slug. |
title required | string | Topic title. |
content required | string | Opening post HTML content. |
reply_visibility | string | Optional reply visibility string (forum policy). |
pinned | boolean | Pin topic (moderators only). |
JSON Schema
{
"type": "object",
"properties": {
"forum_slug": {
"type": "string",
"description": "Target forum slug."
},
"title": {
"type": "string",
"description": "Topic title."
},
"content": {
"type": "string",
"description": "Opening post HTML content."
},
"reply_visibility": {
"type": "string",
"description": "Optional reply visibility string (forum policy)."
},
"pinned": {
"type": "boolean",
"description": "Pin topic (moderators only)."
}
},
"required": [
"forum_slug",
"title",
"content"
]
}Output
Serialized topic (same shape as REST).
Type: object
JSON Schema
{
"type": "object",
"description": "Serialized topic (same shape as REST)."
}Defined in inc/Forums/Forum_Abilities.php