woocommerce custom update shipping method price 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'];