'.$html.''; $return = str_replace('frameborder="0" allowfullscreen', 'style="border:none"', $return); return $return; } add_filter( 'embed_oembed_html', 'dw_embed_oembed_html' ); function dw_embed_oembed_html( $html ) { return preg_replace( '@src="https?:@', 'src="', $html ); } add_filter("gform_field_content", "boot_gravity", 10, 5); function boot_gravity($content, $field, $value, $lead_id, $form_id){ if($field["type"] != 'hidden' && $field["type"] != 'list' && $field["type"] != 'multiselect' && $field["type"] != 'checkbox' && $field["type"] != 'fileupload' && $field["type"] != 'date' && $field["type"] != 'html' && $field["type"] != 'address') { $content = str_replace('class=\'medium', 'class=\'form-control medium', $content); } if($field["type"] == 'name' || $field["type"] == 'address') { $content = str_replace('