Menu

## WC_Shipping_Shipcloud_Shipping_Classes
in package

class-wc-shipping-shipcloud-shipping-classes.php : 16

### Table of Contents

$_instance : object
  The Single instance of the class
add_shipping_class_col_height() : void
  Adding field for height.
add_shipping_class_col_length() : void
  Adding field for length.
add_shipping_class_col_weight() : void
  Adding field for weight (since WooCommerce 2.6)
add_shipping_class_col_width() : void
  Adding field for width.
add_shipping_class_columns() : array<string|int, mixed>
  Adding shipcloud columns to shipping classes.
add_shipping_class_field_values() : array<string|int, WP_Term>
  Add shipping class field values (since WooCommerce 2.6)
admin_enqueue_scripts_and_styles() : void
  Enqueues admin related scripts and styles.
init() : void
  Initializing functions
instance() : object
  Main Instance
save_shipping_class() : void
  Saving class data (since WooCommerce 2.6)
__construct() : void
  Construct
add_admin_notice() : void
  Output an admin notice.
log() : void
  Output a debug message.

### Properties

#### $_instance

class-wc-shipping-shipcloud-shipping-classes.php : 23

The Single instance of the class

`protected static object $_instance = ull`

### Methods

#### add_shipping_class_col_height()

class-wc-shipping-shipcloud-shipping-classes.php : 117

Adding field for height.

`public add_shipping_class_col_height() : void`

##### Return values

void —

#### add_shipping_class_col_length()

class-wc-shipping-shipcloud-shipping-classes.php : 129

Adding field for length.

`public add_shipping_class_col_length() : void`

##### Return values

void —

#### add_shipping_class_col_weight()

class-wc-shipping-shipcloud-shipping-classes.php : 141

Adding field for weight (since WooCommerce 2.6)

`public add_shipping_class_col_weight() : void`

##### Return values

void —

#### add_shipping_class_col_width()

class-wc-shipping-shipcloud-shipping-classes.php : 105

Adding field for width.

`public add_shipping_class_col_width() : void`

##### Return values

void —

#### add_shipping_class_columns()

class-wc-shipping-shipcloud-shipping-classes.php : 87

Adding shipcloud columns to shipping classes.

`public add_shipping_class_columns( $columns) : array<string|int, mixed>`

##### Parameters

$columns :

##### Return values

array<string|int, mixed> —

#### add_shipping_class_field_values()

class-wc-shipping-shipcloud-shipping-classes.php : 189

Add shipping class field values (since WooCommerce 2.6)

`public add_shipping_class_field_values(array<string|int, WP_Term> $shipping_classes) : array<string|int, WP_Term>`

##### Parameters

$shipping_classes : array<string|int, WP_Term>

##### Return values

array<string|int, WP_Term> —

$shipping_classes

#### admin_enqueue_scripts_and_styles()

class-wc-shipping-shipcloud-shipping-classes.php : 68

Enqueues admin related scripts and styles.

`public admin_enqueue_scripts_and_styles() : void`

##### Return values

void —

#### init()

class-wc-shipping-shipcloud-shipping-classes.php : 39

Initializing functions

`public init() : void`

##### Return values

void —

#### instance()

class-wc-shipping-shipcloud-shipping-classes.php : 55

Main Instance

`public static instance() : object`

##### Return values

object —

#### save_shipping_class()

class-wc-shipping-shipcloud-shipping-classes.php : 155

Saving class data (since WooCommerce 2.6)

`public save_shipping_class( $term_id, $data) : void`

##### Parameters

$term_id :
$data :

##### Return values

void —

#### __construct()

class-wc-shipping-shipcloud-shipping-classes.php : 30

Construct

`private __construct() : void`

##### Return values

void —

#### add_admin_notice()

class-wc-shipping-shipcloud-shipping-classes.php : 209

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 —

#### log()

class-wc-shipping-shipcloud-shipping-classes.php : 221

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