Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Menashay

    (@menashay)

    I have already attempted the following code (which I put in functions.php of my child theme) but the http was still changed to https –
    function my_custom_http_urls($arr) {
    global $post;
    if ($post->ID = 123) {
    //unset($arr[“src=’https://”%5D);
    //or, if double quotes were used:
    unset($arr[‘src=”https://’%5D);
    }
    return $arr;
    }
    add_filter(“rlrsssl_replace_url_args”,”my_custom_http_urls”);

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I think it should possible with the rsssl_fixer_output filter:

    function exclude_http_url($html) {
      $html = str_replace("search_url", "replace_url", $html);
      return $html;
    }
    add_filter("rsssl_fixer_output","exclude_http_url");

    Where you can replace the changed url back to http.

    Thread Starter Menashay

    (@menashay)

    Tried that code, did not work either.

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi,

    I’ve tested the code, it does what it’s supposed to do, but maybe it doesn’t solve your problem?

    On my test setup the url was replaced back to http, as expected.

    You can check in your console what happens exactly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exceptions to http fixer’ is closed to new replies.