Menu

## WooCommerce_Shipping_Shipcloud
in package

woocommerce-shipping-shipcloud.php : 80

### Table of Contents

$instance : WooCommerce_Shipping_Shipcloud
  Instance of this class.
__construct() : mixed
  Initialize the plugin's public actions.
activate_plugin() : mixed
add_menu_item() : void
  Add admin menu.
add_method() : array<string|int, mixed>
  Add shipcloud shipping method.
add_product_meta_fields() : void
  Add shipcloud specific custom fields to products
admin_enqueue_scripts() : void
  Assets to enqueue in admin.
deactivate_plugin() : mixed
dismiss_upgrade_notice() : void
  Turn of the dismisable upgrade notice.
enqueue_scripts() : mixed
filter_wc_general_settings() : array<string|int, mixed>
  Adds some form fields to WC general settings
get_instance() : mixed
  Get the class instance.
get_settings_page() : void
  Redirects to shipcloud settings page.
install() : mixed
  Update/migration script.
log() : void
  Output a debug message.
maybe_install() : bool
  Checks the plugin version.
plugin_links() : array<string|int, mixed>
  Plugin page links.
plugin_row_meta() : array<string|int, mixed>
  Plugin page links to support and documentation
save_product_meta_fields() : void
  Save custom product data
shipping_method_init() : void
  Include needed files.
upgrade_notice() : void
  Show the user a notice for plugin updates.
add_admin_notice() : void
  Output an admin notice.
plugin_is_active() : bool
  Checks if a plugin is activated.

### Properties

#### $instance

woocommerce-shipping-shipcloud.php : 87

Instance of this class.

`private static WooCommerce_Shipping_Shipcloud $instance`

### Methods

#### __construct()

woocommerce-shipping-shipcloud.php : 102

Initialize the plugin's public actions.

`public __construct() : mixed`

##### Return values

mixed —

#### activate_plugin()

woocommerce-shipping-shipcloud.php : 134
`public static activate_plugin() : mixed`

##### Return values

mixed —

#### add_menu_item()

woocommerce-shipping-shipcloud.php : 407

Add admin menu.

`public add_menu_item() : void`

##### Return values

void —

#### add_method()

woocommerce-shipping-shipcloud.php : 264

Add shipcloud shipping method.

`public add_method(array<string|int, mixed> $methods) : array<string|int, mixed>`

##### Parameters

$methods : array<string|int, mixed>

  Shipping methods.

##### Return values

array<string|int, mixed> —

Shipping methods.

#### add_product_meta_fields()

woocommerce-shipping-shipcloud.php : 318

Add shipcloud specific custom fields to products

`public add_product_meta_fields() : void`

##### Return values

void —

#### admin_enqueue_scripts()

woocommerce-shipping-shipcloud.php : 443

Assets to enqueue in admin.

`public admin_enqueue_scripts() : void`

##### Return values

void —

#### deactivate_plugin()

woocommerce-shipping-shipcloud.php : 140
`public static deactivate_plugin() : mixed`

##### Return values

mixed —

#### dismiss_upgrade_notice()

woocommerce-shipping-shipcloud.php : 398

Turn of the dismisable upgrade notice.

`public dismiss_upgrade_notice() : void`

##### Return values

void —

#### enqueue_scripts()

woocommerce-shipping-shipcloud.php : 480
`public enqueue_scripts() : mixed`

##### Return values

mixed —

#### filter_wc_general_settings()

woocommerce-shipping-shipcloud.php : 277

Adds some form fields to WC general settings

`public filter_wc_general_settings(array<string|int, mixed> $settings) : array<string|int, mixed>`

##### Parameters

$settings : array<string|int, mixed>

##### Return values

array<string|int, mixed> —

#### get_instance()

woocommerce-shipping-shipcloud.php : 92

Get the class instance.

`public static get_instance() : mixed`

##### Return values

mixed —

#### get_settings_page()

woocommerce-shipping-shipcloud.php : 434

Redirects to shipcloud settings page.

`public get_settings_page() : void`

##### Return values

void —

#### install()

woocommerce-shipping-shipcloud.php : 178

Update/migration script.

`public install() : mixed`

##### Return values

mixed —

#### log()

woocommerce-shipping-shipcloud.php : 522

Output a debug message.

`public 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 —

#### maybe_install()

woocommerce-shipping-shipcloud.php : 149

Checks the plugin version.

`public maybe_install() : bool`

##### Return values

bool —

#### plugin_links()

woocommerce-shipping-shipcloud.php : 224

Plugin page links.

`public plugin_links(array<string|int, mixed> $links) : array<string|int, mixed>`

##### Parameters

$links : array<string|int, mixed>

  Plugin links.

##### Return values

array<string|int, mixed> —

Plugin links.

#### plugin_row_meta()

woocommerce-shipping-shipcloud.php : 238

Plugin page links to support and documentation

`public plugin_row_meta(array<string|int, mixed> $links, string $file) : array<string|int, mixed>`

##### Parameters

$links : array<string|int, mixed>

  List of plugin links.

$file : string

  Current file.

##### Return values

array<string|int, mixed> —

#### save_product_meta_fields()

woocommerce-shipping-shipcloud.php : 348

Save custom product data

`public save_product_meta_fields(string $post_id) : void`

##### Parameters

$post_id : string

##### Return values

void —

#### shipping_method_init()

woocommerce-shipping-shipcloud.php : 253

Include needed files.

`public shipping_method_init() : void`

##### Return values

void —

#### upgrade_notice()

woocommerce-shipping-shipcloud.php : 364

Show the user a notice for plugin updates.

`public upgrade_notice() : void`

##### Return values

void —

#### add_admin_notice()

woocommerce-shipping-shipcloud.php : 510

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 —

#### plugin_is_active()

woocommerce-shipping-shipcloud.php : 492

Checks if a plugin is activated.

`private plugin_is_active([string $plugin = '' ]) : bool`

##### Parameters

$plugin : string = ''

  the plugin to be checked

##### Return values

bool —

## Search results