Automattic\WooCommerce\Admin\Features\Fulfillments\Providers

CustomShippingProvider::try_parse_tracking_numberpublicWC 1.0

Custom providers do not support automatic tracking number parsing.

Method of the class: CustomShippingProvider{}

No Hooks.

Returns

Array|null. Always returns null for custom providers.

phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter

Usage

$CustomShippingProvider = new CustomShippingProvider();
$CustomShippingProvider->try_parse_tracking_number( $tracking_number, $shipping_from, $shipping_to ): ?array;
$tracking_number(string) (required)
The tracking number.
$shipping_from(string) (required)
The country code from which the shipment is sent.
$shipping_to(string) (required)
The country code to which the shipment is sent.

CustomShippingProvider::try_parse_tracking_number() code WC 10.9.4

public function try_parse_tracking_number( string $tracking_number, string $shipping_from, string $shipping_to ): ?array {
	return null;
}