-
Notifications
You must be signed in to change notification settings - Fork 0
Courier_Types
github-actions[bot] edited this page Aug 26, 2024
·
12 revisions
Class Courier_Types
- Full name:
\CourierNotices\Controller\Courier_Types
private $kses_template
Register our actions for courier type administration.
public register_actions(): mixed
Get the row template
public add_templates(): mixed
Add a new Courier Type by Ajax.
public add_type(): mixed
Update a courier notice type.
public update_type(): mixed
Delete a courier notice type.
public delete_type(): mixed
Adds in our term meta for our courier types
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 |
When saving Courier Notice Types save the customizations as CSS in a transient.
public static save_css_transient(): mixed
Loop through all available courier_type terms
- This method is static.
Automatically generated on 2024-08-26