Slidario has filters and actions for developers. The main ones are listed here; all names start with sliderflow_.
Filters
| Filter | Use |
|---|---|
sliderflow_types, sliderflow_styles, sliderflow_templates | Slider types, styles and templates. |
sliderflow_config_defaults, sliderflow_sanitize_config | Default slider settings and how saved settings are cleaned. |
sliderflow_settings_defaults, sliderflow_settings_tabs | Global settings and the Settings tabs. |
sliderflow_should_render, sliderflow_render_config, sliderflow_render_html | Whether a slider renders, its settings at render time, and the final HTML. |
sliderflow_template, sliderflow_swiper_data | The template file and the Swiper options. |
sliderflow_auto_badges, sliderflow_max_badges (2), sliderflow_low_stock_threshold (5), sliderflow_new_window_days (14) | Product badges. |
sliderflow_recently_viewed_ids | The recently viewed product IDs (Pro). |
sliderflow_placement_map | Auto-placement pages and positions (Pro). |
sliderflow_analytics_columns, sliderflow_analytics_summary | The analytics table and summary. |
sliderflow_ai_available, sliderflow_ai_pre_generate | Whether AI is offered, and its output before use. |
sliderflow_mcp_tools, sliderflow_mcp_capability | MCP tools and who may use them (default manage_options). |
sliderflow_admin_tabs | The admin tabs. |
sliderflow_is_pro | Whether Pro features are available. |
Actions
| Action | When it fires |
|---|---|
sliderflow_tracked | After a view, click or add to cart is counted (slider ID, event, product ID). |
sliderflow_register_assets, sliderflow_enqueue_assets | When slider files are registered, and when a slider of a type is on the page. |
sliderflow_builder_top, sliderflow_builder_item_fields, sliderflow_builder_nav, sliderflow_builder_sched | Add fields to the builder. |
sliderflow_settings_tab_{key} | Add content to a Settings tab. |
sliderflow_analytics_after_table | Below the analytics table. |
REST API and shortcodes
GET /wp-json/sliderflow/v1/sliders lists sliders for users who can edit posts. Shortcodes: [slidario id=""] and [slidario_popup id="" trigger="" delay="" once=""].
Example: show a slider only to logged-in users
add_filter( 'sliderflow_should_render', function ( $show, $slider_id ) {
return 64 === (int) $slider_id ? is_user_logged_in() : $show;
}, 10, 2 );