Automattic\WooCommerce\Internal\Fulfillments\Providers
CorreosShippingProvider::get_tracking_url
Get the tracking URL for a given tracking number.
Method of the class: CorreosShippingProvider{}
No Hooks.
Returns
String. The tracking URL.
Usage
$CorreosShippingProvider = new CorreosShippingProvider(); $CorreosShippingProvider->get_tracking_url( $tracking_number ): string;
- $tracking_number(string) (required)
- The tracking number.
CorreosShippingProvider::get_tracking_url() CorreosShippingProvider::get tracking url code WC 10.3.3
public function get_tracking_url( string $tracking_number ): string {
return 'https://www.correos.es/ss/Satellite/site/pagina-tracking/info?idioma=en_GB&numeroEnvio=' . $tracking_number;
}