onCategoryCreated( )


A backend event that fires when a new forum category is created.

The onCategoryCreated() event handler runs when a new forum category is created in your site. The received CreatedCategory object contains information about the new category that was created.

Notes:

  • If you create a category from your published site, onCategoryCreated() runs only when you finish defining the settings and click Create. If you create a category using the forum settings in the Editor, onCategoryCreated() will run with the default settings as soon as you click Add New Category. As you continue to define the category settings, onCategoryUpdated() will run.

  • Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventCreatedCategoryRequired

Information about the forum category that was created.

Did this help?