jetpack_photon_domain, , $url

jetpack_photon_domain, , $url

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_photon_domain, , $url') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-image-cdn/src/class-image-cdn-core.php line 273
    			return false;
    		}
    
    		// See usage in ::cdn_url for documentation of this filter
    		$custom_photon_url = apply_filters( 'jetpack_photon_domain', '', $url );
    		$custom_photon_url = esc_url( $custom_photon_url );
    
    		return in_array( $parsed_url['host'], array( 'i0.wp.com', 'i1.wp.com', 'i2.wp.com' ), true )
    			|| wp_parse_url( $custom_photon_url, PHP_URL_HOST ) === $parsed_url['host'];
    	}