metaslider_capability

Description Use this filter to modify the user capability required to use Meta Slider. The default capability is ‘edit_others_posts’. Parameters $capability (string) (required) User role capability Examples Change the capability required to use Meta Slider You can change the required capability to any default capability included in WordPress. In the example below we’ve used the User Role Editor […]

Read More

metaslider_post_feed_args

Description Use this filter to modify the query arguments used to extract posts in a Post Feed slide. Parameters $args (array) (required) WP_Query arguments as defined by the slide settings $slide (object) (required) Current slide data $slider_settings (array) (required) Current slider settings $slide_settings (array) (required) Current slide settings Examples The following code samples should be added to your […]

Read More

metaslider_hoplink

Description Use this filter to modify the URL used in the “Go Pro” links throughout Meta Slider. This is for use by theme developers who have signed up as an affiliate. Parameters $link (string) (required) The URL used to direct users to www.metaslider.com from all “Go Pro” links within the Meta Slider interface. Examples Use Affiliate URL

Read More

metaslider_default_parameters

Description Use this filter to modify the default slideshow settings. Theme developers may wish to use this to automatically set a ‘recommended’ slideshow size. Note: this will only apply to the first ever slideshow created in Meta Slider. Subsequent slideshows are given a copy of the settings for the last edited slideshow. Parameters $params (array) […]

Read More

metaslider_resized_image_url

Description This this filter to modify the slide image URL used by Meta Slider. For example, it could be used to change the full image URL to a relative image URL. Parameters $cropped_url (string) (required) The URL to the cropped/resized image (e.g. http://[…]/image-150×150.jpg) $orig_url (string) (required) The URL to the full size image (e.g.  http://[…]/image.jpg) Examples Protocol Relative URLs […]

Read More

metaslider_image_{$type}_slider_markup

Description This filter allows you to modify the complete slide HTML generated by Meta Slider. {type} can be flex, coin, responsive or nivo. Parameters $html (string) (required) HTML markup for the complete slide $slide (array) (required) Slide data $settings (array) (required) Slideshow settings Examples Append custom HTML to each slide

Read More

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 […]

Read More

metaslider_{type}_slider_anchor_attributes

Description Use this filter to modify or add attributes to each slide anchor (link) tag. {type} can be flex, coin, responsive or nivo. Parameters $attributes (array) (required) Default anchor attributes (eg url, target etc). $slide (array) (required) Slide data $slider_id (int) (required) Slideshow ID Examples This example will automatically link each slide to it’s full image URL. {type} can be […]

Read More

metaslider_{type}_slider_javascript

Use this filter to add javascript below (after) the slider JavaScript call. {type} can be flex, coin, responsive or nivo.

Read More

metaslider_{type}_slider_javascript_before

Use this filter to add javascript before the slider JavaScript call. {type} can be flex, coin, responsive or nivo.

Read More