edit shipping method prices usps woocommerce code example
Example: get shipping price of choosen shipping method woocommerce
$chosen_shipping_method_price = WC()->session->get('cart_totals')['shipping_total'];
$chosen_shipping_method_price = WC()->session->get('cart_totals')['shipping_total'];