Automattic\WooCommerce\Admin\Features\Fulfillments\Providers

CustomShippingProvider::__constructpublicWC 1.0

Constructor.

Method of the class: CustomShippingProvider{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CustomShippingProvider = new CustomShippingProvider();
$CustomShippingProvider->__construct( $key, $name, $icon, $tracking_url_template );
$key(string) (required)
The provider key (term slug).
$name(string) (required)
The provider display name.
$icon(string) (required)
The provider icon URL.
$tracking_url_template(string) (required)
The tracking URL template.

CustomShippingProvider::__construct() code WC 10.9.4

public function __construct( string $key, string $name, string $icon, string $tracking_url_template ) {
	$this->key                   = $key;
	$this->name                  = $name;
	$this->icon                  = $icon;
	$this->tracking_url_template = $tracking_url_template;
}