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



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


Since: Jetpack 2.4.0


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: Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s


  1. Discount Flux says:

    when i enable “speed up image load time” button but button not enabled and when i enable button for image optimize and also show “updated” small popup on top-right side but when i refresh the page then again button show as disable. finally on my site jetpack not working properly

  2. diouldebalde says:

    Pourquoi mon premier image du site ne se désactive pas ?