Search...
onCategoryDeleted( )
A backend event that fires when a forum category is deleted.
Description
The onCategoryDeleted()
event handler runs when an existing forum category in your site is deleted.
The received DeletedCategory
object contains information about the category that was deleted.
Note: Backend events are not fired when previewing your site.
Syntax
function onCategoryDeleted(event: DeletedCategory): void
onCategoryDeleted Parameters
NAME
TYPE
DESCRIPTION
event
DeletedCategory
Information about the forum category that was deleted.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
A backend event that occurs when a forum category is deleted
Copy Code
1// Place this code in a file named events.js2// in the Backend section of your code files.34export function wixForum_onCategoryDeleted(event) {5 const deletedCategoryId = event.categoryId;6 console.log("Category deleted");7}