Siteryn Mini Cart & Side Cart for WooCommerce icon
eCommerce & WooCommerce

Siteryn Mini Cart & Side Cart for WooCommerce hooks reference

  • By Siteryn
  • v1.0.0
  • Updated

Siteryn Mini Cart & Side Cart for WooCommerce 1.0.0 has 6 actions and 28 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.

functions.phpyour child theme
// Run your own code when Siteryn Mini Cart & Side Cart for WooCommerce fires an action
add_action( 'siteryn_mcsc_cart_item_after_price', function( $item, $context ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Siteryn Mini Cart & Side Cart for WooCommerce is about to use
add_filter( 'siteryn_mcsc_render_side_cart', function( $value ) {
	// Change $value here.
	return $value;
}, 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

  • includes/Frontend.php line 60 · used in 4 places
    /**
     * Filters whether the auto-injected side cart trigger/drawer should be
     * rendered on the current request. Defaults to the "Side cart" admin setting.
     * Useful for themes that build their own trigger via the `[siteryn_mini_cart]`
     * shortcode instead.
     */
    apply_filters( 'siteryn_mcsc_render_side_cart', Settings::get( 'enable_side_cart' ) );
  • includes/Frontend.php line 129 · used in 3 places
    /**
     * Filters whether the `[siteryn_mini_cart]` shortcode (and
     * `siteryn_mcsc_mini_cart()` template tag) renders anything. Defaults to true.
     * Add-ons with their own display-rule conditions should layer on top of this
     * rather than reimplementing the gate.
     */
    apply_filters( 'siteryn_mcsc_render_mini_cart', true );
  • includes/Admin/AdminMenu.php line 263
    /**
     * Filters the list of Siteryn plugins shown as cards on the shared Welcome
     * page. Each entry is `array( 'slug' => string, 'title' => string, 'icon' =>
     * string )` -- `slug` is that plugin's own settings page slug (unaffected by
     * any of this, see this class's own docblock), `icon` its own brand SVG's full
     * URL. Every active Siteryn plugin adds itself unconditionally (see
     * `add_dashboard_entry()`), regar...
     */
    apply_filters( 'siteryn_dashboard_plugins', array() );
  • includes/Admin/DeactivationFeedback.php line 175
    /**
     * Filters the deactivation feedback endpoint.
     */
    apply_filters( 'siteryn_deactivation_feedback_endpoint', $url );
  • includes/Admin/FieldRegistry.php line 168
    /**
     * Filters the built admin settings tabs tree. An add-on (or any third party)
     * can add its own tabs/sub-tabs/fields here without touching Free's code. New
     * field ids must not collide with an existing one.
     */
    apply_filters( 'siteryn_mcsc_admin_field_registry', $tabs );
  • includes/Admin/AdminIcons.php line 92
    /**
     * Filters the admin line icon set (name => SVG inner markup on a 24px grid,
     * stroked with currentColor).
     */
    apply_filters( 'siteryn_mcsc_admin_icons', self::SET );
  • includes/Admin/SettingsPage.php line 552
    /**
     * Filters the current settings array for an option name that isn't Free's own,
     * so the admin form can render each field at its real, saved value instead of
     * silently falling back to defaults. An add-on with its own option must hook
     * this and, when `$option_name` matches its own option, return its own
     * `Settings::get_all()`-equivalent array.
     */
    apply_filters( 'siteryn_mcsc_admin_option_settings', array(), $option_name );
  • includes/Admin/AdminAssets.php line 121
    /**
     * Filters the configuration object localized to the admin script as
     * `window.siterynMcscAdminConfig`. Add your own keys here rather than
     * localizing a second admin script object.
     */
    apply_filters( 'siteryn_mcsc_admin_script_config', array( 'currentSettings' => Settings::get_all(), 'previewFields' => $preview_map, 'previewIcons' => array_map( static function ( $svg ) { return wp_kses( $svg, Icons::floating_cart_icons_kses_allowed() ); }, Icons::floating_cart_icons() ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'saveAction' => SettingsAjax::ACTION, 'i18n' => array( 'saving' => __( 'Saving...', 'siteryn-mini-cart-side-cart'... );
  • includes/Icons.php line 47
    /**
     * Filters the cart trigger icon choices (key => inline SVG markup, `viewBox="0
     * 0 24 24"`, stroked with `currentColor`). Any markup added must fit
     * `floating_cart_icons_kses_allowed()`.
     */
    apply_filters( 'siteryn_mcsc_cart_icons', array( 'basket' => '<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 11-1 9"/><path d="m19 11-4-7"/><path d="M2 11h20"/><path d="m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4"/><path d="M4.5 15.5h15"/><path d="m5 11 4-7"/><path d="m9 11 1 9"/></svg>', 'b... );
  • includes/Icons.php line 89
    /**
     * Filters the tags/attributes allowed in cart icon markup, for add-ons whose
     * icons (see `siteryn_mcsc_cart_icons`) need more.
     */
    apply_filters( 'siteryn_mcsc_cart_icons_kses_allowed', array( 'svg' => array( 'viewbox' => true, 'width' => true, 'height' => true, 'fill' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'aria-hidden' => true, ), 'path' => array( 'd' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, ), 'line' => array( 'x1' => true, 'y1' => true, 'x2' => tr... );
  • templates/cart-item.php line 88
    /**
     * Fires right after a cart item's name/price, before its quantity row --
     * add-ons that need to show extra per-item detail (variation attributes, SKU,
     * etc.) hook this rather than an add-on maintaining its own copy of this
     * template, which has previously caused an add-on's copy to silently drift out
     * of sync with fixes made here.
     */
    do_action( 'siteryn_mcsc_cart_item_after_price', $item, $context );
  • includes/CartService.php line 236
    /**
     * Filters whether a cart item should be listed in the mini/side cart.
     */
    apply_filters( 'siteryn_mcsc_cart_item_visible', true, $cart_item, $cart_item_key );
  • includes/Plugin.php line 91
    /**
     * Fires once Siteryn Mini Cart & Side Cart has confirmed its requirements are
     * met and finished bootstrapping.
     */
    do_action( 'siteryn_mcsc_loaded', $this );
  • includes/Templates.php line 68
    /**
     * Filters the resolved absolute path for a Siteryn Mini Cart & Side Cart
     * template.
     */
    apply_filters( 'siteryn_mcsc_locate_template', $template, $template_name );
  • includes/Multilingual.php line 159
    /**
     * Filters the admin-ajax actions switched to the requesting page's
     * language/locale before they run (see `maybe_switch_ajax_language()`).
     * Add-ons rendering their own cart markup over admin-ajax (e.g. an add-on's
     * coupon endpoints) add their action names here.
     */
    apply_filters( 'siteryn_mcsc_multilingual_ajax_actions', array( 'siteryn_mcsc_update_quantity', 'siteryn_mcsc_remove_item', 'siteryn_mcsc_get_cart_state' ) );
  • includes/Assets.php line 128
    /**
     * Filters the configuration object localized to the frontend script as
     * `window.siterynMcscConfig`. `minQuantity` is the lowest value the quantity
     * stepper/input allows (0 removes the item), from the "Lowering Quantity Below
     * 1" setting.
     */
    apply_filters( 'siteryn_mcsc_script_config', array( 'focusableSelector' => 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', 'ajaxUrl' => Multilingual::ajax_url(), 'nonce' => wp_create_nonce( Ajax::NONCE_ACTION ), 'addToCartUrl' => class_exists( '\\WC_AJAX' ) ? \WC_AJAX::get_endpoint( 'add_to_cart' ) : '', 'redirectToCart' => 'yes' === get_option( '... );
  • includes/Fragments.php line 125
    /**
     * Filters the settings signature mixed into the cart hash for cart fragment
     * cache invalidation (see `add_settings_to_hash()` above). Add-ons whose own
     * settings also affect the rendered mini/side cart markup (an add-on's cart
     * goal, coupon, recommendations, custom content, etc.) should fold their own
     * settings into this string too, rather than only relying on Free's own
     * settings changing.
     */
    apply_filters( 'siteryn_mcsc_settings_hash', md5( wp_json_encode( Settings::get_all() ) ) );
  • includes/Admin/SettingsPage.php line 464
    /**
     * Filters the option_name => admin-post reset-action map.
     */
    apply_filters( 'siteryn_mcsc_settings_reset_actions', array( Settings::OPTION_NAME => Settings::RESET_ACTION ) );
  • includes/Frontend.php line 74
    /**
     * Filters whether the auto-injected floating trigger button is rendered.
     * Defaults to the "Floating cart button" admin setting. The drawer itself
     * still renders so a theme-provided trigger (matching the same data
     * attributes) keeps working.
     */
    apply_filters( 'siteryn_mcsc_show_side_cart_trigger', Settings::get( 'show_floating_trigger' ) );
  • includes/Admin/SystemStatusPage.php line 131
    /**
     * Filters the System Status summary cards shown while the add-on is active, so
     * it can add its own status card.
     */
    apply_filters( 'siteryn_mcsc_system_status_cards', $cards );
  • includes/Plugin.php line 114
    /**
     * Fires when the stored plugin version differs from the running version,
     * before the stored version is updated.
     */
    do_action( 'siteryn_mcsc_upgrade', $installed_version, SITERYN_MCSC_VERSION );
  • includes/Multilingual.php line 224 · used in 2 places
    do_action( 'wpml_switch_language', $language );
  • includes/Admin/FieldRenderer.php line 123
    do_action( "siteryn_mcsc_render_field_input_{$type}", $field, $value, array( 'name' => $name, 'html_id' => $html_id, 'data_preview' => $data_pre, ) );
  • includes/Admin/FieldRenderer.php line 43
    do_action( "siteryn_mcsc_render_field_row_{$type}", $field, $value, $option_name );
  • includes/Ajax.php line 140
    apply_filters( 'woocommerce_add_to_cart_fragments', array() );
  • includes/CartService.php line 244
    apply_filters( 'woocommerce_cart_item_name', $product->get_name(), $cart_item, $cart_item_key );
  • includes/CartService.php line 262
    apply_filters( 'woocommerce_cart_item_price', $cart->get_product_price( $product ), $cart_item, $cart_item_key );
  • includes/CartService.php line 263
    apply_filters( 'woocommerce_cart_item_subtotal', $cart->get_product_subtotal( $product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
  • includes/CartService.php line 261
    apply_filters( 'woocommerce_cart_item_thumbnail', $product->get_image( 'woocommerce_single', array( 'sizes' => '96px' ) ), $cart_item, $cart_item_key );
  • includes/CartService.php line 337
    apply_filters( 'woocommerce_get_item_data', $item_data, $cart_item );
  • includes/CartService.php line 323
    apply_filters( 'woocommerce_variation_option_name', $value, null, $taxonomy, $product );
  • includes/Multilingual.php line 80
    apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) );
  • includes/Multilingual.php line 63
    apply_filters( 'wpml_current_language', null );

Generated from Siteryn Mini Cart & Side Cart for WooCommerce'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.

Plugin 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 this

Not 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: