metaslider_{type}_slider_image_attributes

Description

Use this filter to modify or add attributes to each slide image tag.

{type} can be flex, coin, responsive or nivo.

Parameters

$attributes

(array) (required) Default image attributes (eg width, height, src).

$slide

(array) (required) Slide data

$slider_id

(int) (required) Slideshow ID

Examples

Add rel attribute

This example will add a ‘rel’ attribute of ‘lightbox’ to each slide in the slideshow. Eg,  <img width='x' height='x' src='x' rel='lightbox' />