*** # Courier_Types Class Courier_Types * Full name: `\CourierNotices\Controller\Courier_Types` ## Properties ### kses_template ```php private $kses_template ``` *** ## Methods ### register_actions Register our actions for courier type administration. ```php public register_actions(): mixed ``` *** ### add_templates Get the row template ```php public add_templates(): mixed ``` *** ### add_type Add a new Courier Type by Ajax. ```php public add_type(): mixed ``` *** ### update_type Update a courier notice type. ```php public update_type(): mixed ``` *** ### delete_type Delete a courier notice type. ```php public delete_type(): mixed ``` *** ### insert_term_meta Adds in our term meta for our courier types ```php private insert_term_meta(array $term, string $class_name = '', string $hex_color = '', string $label_color = '', mixed $icon_color = '', mixed $bg_color = ''): mixed ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$term` | **array** | The term to add meta to. | | `$class_name` | **string** | The class name. | | `$hex_color` | **string** | The hex color. | | `$label_color` | **string** | The hex color label. | | `$icon_color` | **mixed** | | | `$bg_color` | **mixed** | | *** ### save_css_transient When saving Courier Notice Types save the customizations as CSS in a transient. ```php public static save_css_transient(): mixed ``` Loop through all available courier_type terms * This method is **static**. *** *** > Automatically generated on 2024-08-26