title: Woocommerce Empty cart functions not working
body: <p>I have a Wordpress - Woocommerce Website.On my website i added empty cart button by using following code.</p>
  
  <pre><code>add_action( 'init', 'woocommerce_clear_cart_url' );
  function woocommerce_clear_cart_url() {
      global $woocommerce;
      if ( isset( $_GET['empty-cart'] ) ) {
          echo "test";
          //exit;
          $woocommerce-&gt;cart-&gt;empty_cart(true);
      }
  }
  add_action( 'woocommerce_cart_actions', 'patricks_add_clear_cart_button', 20 );
  function patricks_add_clear_cart_button() {
      echo "&lt;a class='button' href='?empty-cart=true'&gt;" . __( 'Empty Cart', 'woocommerce' ) . "&lt;/a&gt;";
  } 
  </code></pre>
  
  <p>This code is not working when user logged in.When user logged in apply the empty cart button then cart is not empty.This code only working at the time of user logged out.I am using latest version of woocommerce 3.2.2. </p>
  
  <p>I can't understand how to fix. </p>