onCategoryDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:

Triggered when a category is removed.

Permissions
Manage Forums
Read Forums
Learn more about app permissions.
Method Declaration
Copy
function onCategoryDeleted(handler: function): void;
Method Parameters
handlerfunction

handler(event: CategoryDeletedEnvelope): void | Promise<void>

JavaScript
import { categories } from "@wix/forum"; categories.onCategoryDeleted((event) => { // handle your event here });
Did this help?