Skip to content

Instantly share code, notes, and snippets.

@tomhemsley
Created December 10, 2015 19:21

Revisions

  1. tomhemsley revised this gist Dec 10, 2015. No changes.
  2. tomhemsley revised this gist Dec 10, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    function ms_vimeo_force_https($url, $slider_id, $slide_id) {
    function ms_vimeo_loop_and_https($url, $slider_id, $slide_id) {
    return "https:" . $url . "&loop=1";
    }
    add_filter('metaslider_vimeo_params', 'ms_vimeo_force_https', 10, 3);
    add_filter('metaslider_vimeo_params', 'ms_vimeo_loop_and_https', 10, 3);
  3. tomhemsley created this gist Dec 10, 2015.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    function ms_vimeo_force_https($url, $slider_id, $slide_id) {
    return "https:" . $url . "&loop=1";
    }
    add_filter('metaslider_vimeo_params', 'ms_vimeo_force_https', 10, 3);