Menu

## WC_Shipping_Shipcloud_Cpt_Parcel_Template
in package

class-wc-shipping-shipcloud-cpt-parcel-template.php : 16

### Table of Contents

$_instance : object
  The Single instance of the class
$api : object
add_menu_item() : void
  Adding Parcels to Woo Menu
admin_enqueue_scripts() : void
  Enqueues admin related scripts and styles.
box_settings() : string
  Settings Box
get_create_link() : string
  Builds link where a new template can be created.
instance() : object
  Main Instance
meta_boxes() : void
  Adding Metaboxes
notice_area() : void
  Notice Area
register_post_type() : void
  Registering Post type
remove_all_messages() : array<string|int, mixed>
  Removing all messages
save_post() : void
  Saving data
__construct() : void
  Construct
add_admin_notice() : void
  Output an admin notice.
init() : void
  Initializing Post type
log() : void
  Output a debug message.

### Properties

#### $_instance

class-wc-shipping-shipcloud-cpt-parcel-template.php : 23

The Single instance of the class

`protected static object $_instance = ull`

#### $api

class-wc-shipping-shipcloud-cpt-parcel-template.php : 28
`private object $api`

### Methods

#### add_menu_item()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 127

Adding Parcels to Woo Menu

`public add_menu_item() : void`

##### Return values

void —

#### admin_enqueue_scripts()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 142

Enqueues admin related scripts and styles.

`public admin_enqueue_scripts() : void`

##### Return values

void —

#### box_settings()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 174

Settings Box

`public box_settings() : string`

##### Return values

string —

#### get_create_link()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 118

Builds link where a new template can be created.

`public get_create_link() : string`

##### Return values

string —

#### instance()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 64

Main Instance

`public static instance() : object`

##### Return values

object —

#### meta_boxes()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 159

Adding Metaboxes

`public meta_boxes() : void`

##### Return values

void —

#### notice_area()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 305

Notice Area

`public notice_area() : void`

##### Return values

void —

#### register_post_type()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 77

Registering Post type

`public register_post_type() : void`

##### Return values

void —

#### remove_all_messages()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 315

Removing all messages

`public remove_all_messages(array<string|int, mixed> $messages) : array<string|int, mixed>`

##### Parameters

$messages : array<string|int, mixed>

##### Return values

array<string|int, mixed> —

#### save_post()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 216

Saving data

`public save_post(int $post_id) : void`

##### Parameters

$post_id : int

##### Return values

void —

#### __construct()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 35

Construct

`private __construct() : void`

##### Return values

void —

#### add_admin_notice()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 335

Output an admin notice.

`private add_admin_notice(string $message[, string $type = 'info' ][, bool $dismissible = true ]) : void`

##### Parameters

$message : string

  Debug message.

$type : string = 'info'

  Message type.

$dismissible : bool = true

  Message type.

##### Return values

void —

#### init()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 44

Initializing Post type

`private init() : void`

##### Return values

void —

#### log()

class-wc-shipping-shipcloud-cpt-parcel-template.php : 347

Output a debug message.

`private log(string $message[, string $level = 'info' ][, mixed $context = [] ]) : void`

##### Parameters

$message : string

  Debug message.

$level : string = 'info'

  Debug level.

$context : mixed = []

  The Debug context.

##### Return values

void —

## Search results