Automattic\WooCommerce\Internal\Fulfillments\Providers

CyprusPostShippingProvider::get_tracking_urlpublicWC 1.0

Get the tracking URL for a given tracking number.

Method of the class: CyprusPostShippingProvider{}

No Hooks.

Returns

String. The tracking URL.

Usage

$CyprusPostShippingProvider = new CyprusPostShippingProvider();
$CyprusPostShippingProvider->get_tracking_url( $tracking_number ): string;
$tracking_number(string) (required)
The tracking number.

CyprusPostShippingProvider::get_tracking_url() code WC 10.3.3

public function get_tracking_url( string $tracking_number ): string {
	return 'https://www.cypruspost.post/en/track/' . $tracking_number;
}