title: Change cart item prices in Woocommerce 3
body: <p>I am trying to change product price in cart using the following function:</p>
  
  <pre><code>    add_action( 'woocommerce_before_shipping_calculator', 'add_custom_price' 
       );
        function add_custom_price( $cart_object ) {
           foreach ( $cart_object-&gt;cart_contents as $key =&gt; $value ) {
           $value['data']-&gt;price = 400;
          } 
       }
  </code></pre>
  
  <p>It was working correctly in WooCommerce version 2.6.x but not working anymore in version 3.0+ </p>
  
  <p>How can I make it work in WooCommerce Version 3.0+?</p>
  
  <p>Thanks.</p>