Automattic\WooCommerce\Admin\Features\Fulfillments\Providers
BpostShippingProvider::get_tracking_url
Get the tracking URL for a given tracking number.
Method of the class: BpostShippingProvider{}
No Hooks.
Returns
String. The tracking URL.
Usage
$BpostShippingProvider = new BpostShippingProvider(); $BpostShippingProvider->get_tracking_url( $tracking_number ): string;
- $tracking_number(string) (required)
- The tracking number.
BpostShippingProvider::get_tracking_url() BpostShippingProvider::get tracking url code WC 10.7.0
public function get_tracking_url( string $tracking_number ): string {
return 'https://www.bpost.be/en/track-and-trace?itemId=' . $tracking_number;
}