New Side Cart now integrates with Progressive Discount — rewards visible inside the cart. See how
Get started
Documentation / Side Cart

Hooks for theme developers

Updated September 5, 2026 · 1 min read

Side Cart exposes two filters for theme and plugin authors. There are no do_action hooks — only the two filters below.

side_cart_trigger_selectors

Tells Side Cart which existing element(s) on the page should open the drawer, when the trigger mode is set to use your theme’s own cart icon instead of Side Cart’s built-in one.

add_filter( 'side_cart_trigger_selectors', function ( $selectors ) {
    $selectors[] = '.my-theme-cart-icon';
    return $selectors;
} );

The default selectors are .cart-contents and any link pointing at the cart page.

Side Cart · Free licence

Get Side Cart free, straight to your inbox.

Join the EcomDrama newsletter and we will send you the plugin, your licence key and practical WooCommerce growth tips.