Hooks reference
Every action and filter in Siteryn Mini Cart & Side Cart, with signatures checked against the code. Hooks start with siteryn_mcsc_.
FreePro
Lifecycle
| Hook | Type | Arguments · when |
siteryn_mcsc_loaded | action | ( Plugin $plugin ). Free booted. |
siteryn_mcsc_upgrade | action | ( string|false $installed, string $current ). init (20) on a version change. |
siteryn_mcsc_pro_loaded | action | ( Pro\Plugin $plugin ). Pro booted. |
siteryn_mcsc_pro_upgrade | action | ( string|false $installed, string $current ). init (20) when Pro's version changes; Pro runs its one-time settings migrations here. |
Rendering
| Hook | Type | Arguments · purpose |
siteryn_mcsc_render_side_cart | filter | ( bool $render ). Side Cart, its triggers, shortcode, header binding and assets. |
siteryn_mcsc_render_mini_cart | filter | ( bool $render ). Mini Carts, header Mini Cart and assets. |
siteryn_mcsc_show_side_cart_trigger | filter | ( bool $show ). Floating button only. |
siteryn_mcsc_locate_template | filter | ( string $path, string $template_name ). After the theme lookup. |
siteryn_mcsc_script_config | filter | ( array $config ). Becomes window.siterynMcscConfig. |
siteryn_mcsc_settings_hash | filter | ( string $signature ). Mixed into WooCommerce's cart hash. |
siteryn_mcsc_multilingual_ajax_actions | filter | ( array $actions ). AJAX actions that switch language. |
Cart items
| Hook | Type | Arguments |
siteryn_mcsc_cart_item_visible | filter | ( bool $visible, array $cart_item, string $cart_item_key ). Hidden items still count in the badge. |
siteryn_mcsc_cart_item_after_price | action | ( array $item, string $context ). Inside cart-item.php. |
WooCommerce's woocommerce_cart_item_name, _permalink, _thumbnail, _price, _subtotal and woocommerce_get_item_data are applied too.
Icons
| Filter | Arguments · purpose |
siteryn_mcsc_cart_icons | ( array $icons ) key ⇒ SVG. Icons added here are offered in the Mini Cart's Cart Icon and the Floating Cart's Icon pickers, labelled by their key. |
siteryn_mcsc_cart_icons_kses_allowed | ( array $allowed ). The SVG tags and attributes those icons may use. |
Panel titles, button texts, the cart icon choice, colors, sizes, shadows, the floating button's look and the animation speed are settings, not filters: they're stored in the siteryn_mcsc_settings option (see PHP examples to set them in code).
Admin
| Hook | Type | Arguments |
siteryn_mcsc_admin_field_registry | filter | ( array $tabs ). Add tabs and fields; register on siteryn_mcsc_loaded. |
siteryn_mcsc_admin_option_settings | filter | ( array $settings, string $option_name ) |
siteryn_mcsc_admin_script_config | filter | ( array $config ) |
siteryn_mcsc_admin_icons | filter | ( array $icons ) |
siteryn_mcsc_system_status_cards | filter | ( array $cards ) |
siteryn_mcsc_settings_reset_actions | filter | ( array $map ) option ⇒ admin-post action |
siteryn_mcsc_render_field_row_{$type} | action | ( array $field, mixed $value, string $option_name ) |
siteryn_mcsc_render_field_input_{$type} | action | ( array $field, mixed $value, array $context ) |
siteryn_deactivation_feedback_endpoint | filter | ( string $url ). Shared by Siteryn plugins. |
siteryn_dashboard_plugins | filter | ( array $plugins ) of slug, title, icon. Cards on Siteryn → Welcome; shared by Siteryn plugins. |
Pro defines no filters of its own; it listens to the hooks above. On the settings page, Pro dispatches siteryn_mcsc_pro_license_changed on document (detail.active) when the license is activated or deactivated on the License tab.