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

HookTypeArguments · when
siteryn_mcsc_loadedaction( Plugin $plugin ). Free booted.
siteryn_mcsc_upgradeaction( string|false $installed, string $current ). init (20) on a version change.
siteryn_mcsc_pro_loadedaction( Pro\Plugin $plugin ). Pro booted.
siteryn_mcsc_pro_upgradeaction( string|false $installed, string $current ). init (20) when Pro's version changes; Pro runs its one-time settings migrations here.

Rendering

HookTypeArguments · purpose
siteryn_mcsc_render_side_cartfilter( bool $render ). Side Cart, its triggers, shortcode, header binding and assets.
siteryn_mcsc_render_mini_cartfilter( bool $render ). Mini Carts, header Mini Cart and assets.
siteryn_mcsc_show_side_cart_triggerfilter( bool $show ). Floating button only.
siteryn_mcsc_locate_templatefilter( string $path, string $template_name ). After the theme lookup.
siteryn_mcsc_script_configfilter( array $config ). Becomes window.siterynMcscConfig.
siteryn_mcsc_settings_hashfilter( string $signature ). Mixed into WooCommerce's cart hash.
siteryn_mcsc_multilingual_ajax_actionsfilter( array $actions ). AJAX actions that switch language.

Cart items

HookTypeArguments
siteryn_mcsc_cart_item_visiblefilter( bool $visible, array $cart_item, string $cart_item_key ). Hidden items still count in the badge.
siteryn_mcsc_cart_item_after_priceaction( 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

FilterArguments · 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

HookTypeArguments
siteryn_mcsc_admin_field_registryfilter( array $tabs ). Add tabs and fields; register on siteryn_mcsc_loaded.
siteryn_mcsc_admin_option_settingsfilter( array $settings, string $option_name )
siteryn_mcsc_admin_script_configfilter( array $config )
siteryn_mcsc_admin_iconsfilter( array $icons )
siteryn_mcsc_system_status_cardsfilter( array $cards )
siteryn_mcsc_settings_reset_actionsfilter( 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_endpointfilter( string $url ). Shared by Siteryn plugins.
siteryn_dashboard_pluginsfilter( 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.