| lang | php |
|---|
[TOC=2]
| Parameter | Type | Description |
|---|---|---|
| $cat_ids | Array |
Array of category IDs being deleted |
| Returns | Void |
This hook is executed when a category is deleted via the control panel. It can be used to perform additional actions before the category is deleted.
How it's called:
ee()->extensions->call('category_delete', $cat_ids);
| Parameter | Type | Description |
|---|---|---|
| $cat_id | Int |
ID of category saved |
| $category_data | Array |
Category meta data |
| Returns | Void |
This hook is executed when a new category is saved or an existing category was edited via the control panel. It can be used to perform additional actions after the category is saved.
How it's called:
ee()->extensions->call('category_save', $cat_id, $category_data);
| Parameter | Type | Description |
|---|---|---|
| $changed_rows | Array |
Changed category rows saved during reorder. Each row includes cat_id, parent_id, and cat_order. |
| $group_id | Int |
Category group ID being reordered |
| Returns | Void |
This hook is executed after category reordering is successfully saved in the Control Panel. It only runs after the reorder transaction completes and receives only the rows that changed.
How it's called:
ee()->extensions->call('category_reorder_end', $changed_rows, (int) $group_id);
See Content_publish's foreign_character_conversion_array.