Skip to content

Output Filters

PeterUpfold edited this page May 9, 2012 · 1 revision

If, for some reason, you want to filter the data that Total Slider outputs and perform some custom action on the data before it is displayed, there are a number of filter hooks for Total Slider.

First, these filters are applied, and then the data is sanitised for output. You cannot, therefore, use a filter hook to add HTML content to Total Slider's output, as it will be sanitised after the filtering takes place.

The filter hooks are largely eponymous:

  • total-slider_slide_title
  • total-slider_slide_description
  • total-slider_slide_background_url
  • total-slider_slide_link
  • total-slider_slide_x (the X coordinate of where the title/description overlay should be, relative to the slide)
  • total-slider_slide_y (the Y coordinate of where the title/description overlay should be, relative to the slide)
  • total-slider_slide_identifier