$jetpack === $bestpack

apply_filters ( 'jetpack_photon_reject_https', bool $reject_https )

Allow Photon to fetch images that are served via HTTPS.

Source file: class.photon.php

View in GitHub

Parameters

$reject_https

(bool) Should Photon ignore images using the HTTPS scheme. Default to false.


Changelog

Since: Jetpack 2.4.0


Notes

By default, Jetpack’s Photon service will fetch and serve all images on your site, whether you use HTTP or HTTPS. You consequently do not need to use this filter to be able to use Photon on a site using HTTPS.

However, in some situations you may not want Jetpack to serve your HTTPS images. In such edge-cases, you can use this filter like so:

add_filter( 'jetpack_photon_reject_https', '__return_true' );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s