Developer Hooks: Filters, Actions, REST and Shortcodes

Slidario has filters and actions for developers. The main ones are listed here; all names start with sliderflow_.

Filters

FilterUse
sliderflow_types, sliderflow_styles, sliderflow_templatesSlider types, styles and templates.
sliderflow_config_defaults, sliderflow_sanitize_configDefault slider settings and how saved settings are cleaned.
sliderflow_settings_defaults, sliderflow_settings_tabsGlobal settings and the Settings tabs.
sliderflow_should_render, sliderflow_render_config, sliderflow_render_htmlWhether a slider renders, its settings at render time, and the final HTML.
sliderflow_template, sliderflow_swiper_dataThe 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_idsThe recently viewed product IDs (Pro).
sliderflow_placement_mapAuto-placement pages and positions (Pro).
sliderflow_analytics_columns, sliderflow_analytics_summaryThe analytics table and summary.
sliderflow_ai_available, sliderflow_ai_pre_generateWhether AI is offered, and its output before use.
sliderflow_mcp_tools, sliderflow_mcp_capabilityMCP tools and who may use them (default manage_options).
sliderflow_admin_tabsThe admin tabs.
sliderflow_is_proWhether Pro features are available.

Actions

ActionWhen it fires
sliderflow_trackedAfter a view, click or add to cart is counted (slider ID, event, product ID).
sliderflow_register_assets, sliderflow_enqueue_assetsWhen 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_schedAdd fields to the builder.
sliderflow_settings_tab_{key}Add content to a Settings tab.
sliderflow_analytics_after_tableBelow 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 );