jetpack_photon_any_extension_for_domain, false, $image_url_parts[host]
jetpack_photon_any_extension_for_domain, false, $image_url_parts[host]
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_photon_any_extension_for_domain, false, $image_url_parts[host]') is found 1 times:
- /jetpack_vendor/automattic/jetpack-image-cdn/src/class-image-cdn-core.php line 200
* * @param bool false Should images using query strings go through Photon. Default is false. * @param string $image_url_parts['host'] Image URL's host. */ if ( ! apply_filters( 'jetpack_photon_any_extension_for_domain', false, $image_url_parts['host'] ) ) { // Photon doesn't support query strings so we ignore them and look only at the path. // However some source images are served via PHP so check the no-query-string extension. // For future proofing, this is an excluded list of common issues rather than an allow list. $extension = pathinfo( $image_url_parts['path'], PATHINFO_EXTENSION ); if ( empty( $extension ) || in_array( $extension, array( 'php', 'ashx' ), true ) ) { return $image_url;