oont-contents/plugins/jetpack-boost/jetpack_vendor/automattic/jetpack-image-cdn
2025-04-06 08:34:48 +02:00
..
src origin push 2025-04-06 08:34:48 +02:00
CHANGELOG.md origin push 2025-04-06 08:34:48 +02:00
composer.json origin push 2025-04-06 08:34:48 +02:00
LICENSE.txt Themes & Plugins 2025-02-08 15:10:23 +01:00
README.md Themes & Plugins 2025-02-08 15:10:23 +01:00
SECURITY.md Themes & Plugins 2025-02-08 15:10:23 +01:00

image-cdn

Serve images through Jetpack's powerful CDN

How to install image-cdn

  1. Run: Automattic\Jetpack\Image_CDN\Image_CDN_Core::setup(). You can just load it without a hook. Make sure to definitely load it before plugins_loaded priority 10. This should be ran regardless of if you want image-cdn to be active or not. It provides some core functionality and compatibility layer for the photon module in Jetpack.

  2. When you want to activate image-cdn in images and start replacing image URLs, run Automattic\Jetpack\Image_CDN\Image_CDN_Setup::load().

Contribute

https://github.com/Automattic/jetpack

Using this package in your WordPress plugin

If you plan on using this package in your WordPress plugin, we would recommend that you use Jetpack Autoloader as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security

Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.

License

image-cdn is licensed under GNU General Public License v2 (or later)