MM Side Cart 0.1.1 has 8 actions and 24 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when MM Side Cart fires an action
add_action( 'mm_side_cart_after_item_removed', function( $cart_item_key ) {
// Your code runs here.
}, 10, 1 );
// Change a value MM Side Cart is about to use
add_filter( 'mm_side_cart_cart_data', function( $data ) {
// Change $data here.
return $data;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This filter is documented in this method below. */ apply_filters( 'mm_side_cart_cart_data', $data ); -
/** * Fires after the side cart removed a line. */ do_action( 'mm_side_cart_after_item_removed', $cart_item_key ); -
/** * Fires after the side cart changed a line quantity. */ do_action( 'mm_side_cart_after_quantity_update', $cart_item_key, $validated, $current ); -
/** * Fires after the cart button. */ do_action( 'mm_side_cart_after_trigger', $mm_side_cart_data ); -
/** * Filter the JSON payload returned to the browser. */ apply_filters( 'mm_side_cart_ajax_response', $payload, $data ); -
/** * Fires before the cart button. */ do_action( 'mm_side_cart_before_trigger', $mm_side_cart_data ); -
/** * Filter a button label. */ apply_filters( 'mm_side_cart_button_label', $label, $key ); -
/** * Filter a single prepared cart line. */ apply_filters( 'mm_side_cart_cart_item_data', $item, $cart_item, $cart_item_key ); -
/** * Filter the markup of a single cart line. */ apply_filters( 'mm_side_cart_cart_item_html', $html, $item, $data ); -
/** * Filter the CSS custom properties the side cart is styled with. */ apply_filters( 'mm_side_cart_css_variables', $vars, $settings ); -
/** * Fires inside the empty cart state. */ do_action( 'mm_side_cart_drawer_empty', $mm_side_cart_data ); -
/** * Fires inside the drawer header, after the title. */ do_action( 'mm_side_cart_drawer_header', $mm_side_cart_data ); -
/** * Filter the cart drawer markup. */ apply_filters( 'mm_side_cart_drawer_html', $html, $data ); -
/** * Filter the resolved settings used everywhere in the plugin. */ apply_filters( 'mm_side_cart_get_settings', wp_parse_args( $stored, Settings_Schema::defaults() ) ); -
/** * Fires once the plugin has finished loading. */ do_action( 'mm_side_cart_loaded', $this ); -
/** * Filter the maximum quantity the side cart offers for a line. */ apply_filters( 'mm_side_cart_max_quantity', $max, $product, $cart_item_key ); -
/** * Filter the class names on the side cart root element. */ apply_filters( 'mm_side_cart_root_classes', $classes, $data ); -
/** * Filter the front-end script dependencies. */ apply_filters( 'mm_side_cart_script_dependencies', $deps ); -
/** * Filter the default value of every setting. */ apply_filters( 'mm_side_cart_settings_defaults', $defaults ); -
/** * Filter the settings schema. */ apply_filters( 'mm_side_cart_settings_schema', $schema ); -
/** * Filter whether the side cart is shown on the current page. */ apply_filters( 'mm_side_cart_should_display', $display ); -
/** * Filter the resolved template path. */ apply_filters( 'mm_side_cart_template_path', $path, $name ); -
/** * Filter the cart button markup. */ apply_filters( 'mm_side_cart_trigger_html', $html, $data ); -
apply_filters( 'mm_side_cart_z_index', 99990 ); -
apply_filters( 'woocommerce_cart_item_name', $product->get_name(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_permalink', $product->is_visible() ? $product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_thumbnail', $product->get_image( 'woocommerce_thumbnail', array( 'class' => 'mm-side-cart-thumb-img' ) ), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_visible', true, $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ); -
apply_filters( 'woocommerce_quantity_input_min', 1, $product ); -
apply_filters( 'woocommerce_quantity_input_step', 1, $product );
Generated from MM Side Cart's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: