title: Get cart subtotal in woocommerce_before_calculate_totals hook
body: <p>I want to get cart contents total in woocommerce within <code>woocommerce_before_calculate_totals</code> hook. So to achieve this I am using this code</p>
  <pre><code>add_action( 'woocommerce_before_calculate_totals', 'get_before_calculate_totals', 10 );
  function get_before_calculate_totals( $cart_object ) {
      global $woocommerce;
      echo WC()-&gt;cart-&gt;get_cart_contents_total(); //returns 0
  }
  </code></pre>
  <p>But it returns 0 every time. So can someone tell me how to get cart total without currency within <code>woocommerce_before_calculate_totals</code> hook?</p>
  <p>Any help and suggestion would be really appreciable.</p>