1. Home
  2. Docs
  3. Filters
  4. vc_frontend_editor_iframe_url

vc_frontend_editor_iframe_url

This filter may be handy if you want to change transfer protocol. Eg. from http to https.

<?php
add_filter('vc_frontend_editor_iframe_url', 'change_frontend_editor_iframe_url');
function change_frontend_editor_iframe_url($url) {
  return str_replace("http://", "https://", $url);
}