Skip to content

Courier_Types

linchpin edited this page Feb 22, 2023 · 10 revisions

Courier_Types

Class Courier_Types

  • Full name: \CourierNotices\Controller\Courier_Types

Properties

kses_template

private $kses_template

Methods

register_actions

Register our actions for courier type administration.

public register_actions(): mixed

add_templates

Get the row template

public add_templates(): mixed

add_type

Add a new Courier Type by Ajax.

public add_type(): mixed

update_type

Update a courier notice type.

public update_type(): mixed

delete_type

Delete a courier notice type.

public delete_type(): mixed

insert_term_meta

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

save_css_transient

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 from source code comments on 2023-02-22 using phpDocumentor and saggre/phpdocumentor-markdown