PRO wcus_ttn_form_dimensions

Allows to change shipment default dimensions when creating TTN.

Notice! This filter applies after plugin was  calculated all available shipment dimensions.

Usage:

add_filter('wcus_ttn_form_dimensions', function (array $dimensions, \WC_Order $order): array {
    return [
        'width' => 10,
        'height' => 10,
        'length' => 10,
    ];
}, 10, 2);

Arguments:

$dimensions (array) - current calculated dimensions. Contain keys: width, height and length

$order (WC_Order) - WooCommerce order