# Remove the view cart and checkout in the mini cart in WooCommerce

**URL:** <https://community.mainwp.com/t/remove-the-view-cart-and-checkout-in-the-mini-cart-in-woocommerce/7606>\
**Category:** Code Snippets\
**Tags:** wordpress, woocommerce\
**Created:** [August 30, 2023, 8:23pm UTC](https://community.mainwp.com/t/remove-the-view-cart-and-checkout-in-the-mini-cart-in-woocommerce/7606 "2023-08-30T20:23:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian-moran](https://community.mainwp.com/user_avatar/community.mainwp.com/sebastian-moran/32/16_2.png) [@sebastian-moran](https://community.mainwp.com/u/sebastian-moran)\
**Post date:** [August 30, 2023, 8:23pm UTC](https://community.mainwp.com/t/remove-the-view-cart-and-checkout-in-the-mini-cart-in-woocommerce/7606/1 "2023-08-30T20:23:48Z")

</div>

Remove the view cart and checkout in the mini cart in WooCommerce on child sites.

**Snippet Type**

`Execute on Child Sites`

**Snippet**

```auto
add_action( 'woocommerce_widget_shopping_cart_buttons', function(){
    // Removing Button
    remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_button_view_cart', 10 );
   remove_action( 'woocommerce_widget_shopping_cart_buttons', 'woocommerce_widget_shopping_cart_proceed_to_checkout', 20 );
}, 1 );

```

---

<div class="post-metadata">

**Author:** ![system](https://community.mainwp.com/uploads/default/original/2X/4/4cfc87ac67e4ebdbfa0bbf0b19c8657f35a29a5b.png) [@system](https://community.mainwp.com/u/system)\
**Post date:** [September 29, 2023, 8:24pm UTC](https://community.mainwp.com/t/remove-the-view-cart-and-checkout-in-the-mini-cart-in-woocommerce/7606/2 "2023-09-29T20:24:25Z")

</div>

Closed on September 29, 2023, 8:24pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
