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.
