title: WooCommerce: Remove PayPal Express Button in cart
body: <p>I want to remove the &quot;Proceed to checkout&quot; buttons in the cart if the cart amount is below 20$.</p>
  <p>I found a way to remove the default checkout button with this code:</p>
  <pre><code>function disable_checkout_button() {
  
      // Set this variable to specify a minimum order value
      $minimum = 20;
      $total = WC()-&gt;cart-&gt;cart_contents_total;
      if( $total &lt; $minimum ){
          remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );
      }
  }
  </code></pre>
  <p>But the PayPal Express Checkout button is still there.
  Is there a way to remove that button in the same way?</p>
  <p>I didn't found an hook to do it.</p>
  <p>EDIT: I read <a href="https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/533" rel="nofollow noreferrer">here</a>, that the PayPal buttons are added to the cart page using the <code>woocommerce_proceed_to_checkout</code> hook.</p>
  <p>But adding the following line doesn't do anything for me:</p>
  <pre><code>remove_action( 'woocommerce_proceed_to_checkout', 'display_paypal_button', 20 );
  </code></pre>