Table of Contents
You can use this filter to modify the slide image URL used by MetaSlider. 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
The example below will remove the “http:” portion of the image URL, making it into a “protocol relative URL”. This will allow the image to be loaded over the same protocol as the page itself which is ideal for https pages.
The example below will return the original, full size image URL for each slide. This will effectively disable image cropping.