• SOLVED – being stupid

    To serve images over SSL, place this function at the end of inc/amazon-product-in-a-post-functions.php, then at line 352:

    replace

    $base_url = $imgurl;

    with

    $base_url = amazon_rewrite_image_for_https($imgurl);

    function amazon_rewrite_image_for_https(&$image_url) {
        $url = str_replace('http://', '', $image_url);
        $url = explode('/', $url);
        $url[0] = 'https://images-na.ssl-images-amazon.com';
        $url = implode('/', $url);
        return $image_url = $url;
      }

    https://ww.wp.xz.cn/plugins/amazon-product-in-a-post-plugin/

The topic ‘[solved] Image over SSL’ is closed to new replies.