automattic / jetpack-image-cdn
Serve images through Jetpack's powerful CDN
Installs: 6 978
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 2
Type:jetpack-library
Requires
- php: >=7.0
- automattic/jetpack-assets: ^2.3.14
- automattic/jetpack-status: ^4.0.3
Requires (Dev)
- automattic/jetpack-changelogger: ^4.2.8
- automattic/wordbless: dev-master
- yoast/phpunit-polyfills: ^1.1.1
Suggests
- automattic/jetpack-autoloader: Allow for better interoperability with other plugins that use this package.
This package is auto-updated.
Last update: 2024-11-14 21:12:13 UTC
README
Serve images through Jetpack's powerful CDN
How to install image-cdn
-
Run:
Automattic\Jetpack\Image_CDN\Image_CDN_Core::setup()
. You can just load it without a hook. Make sure to definitely load it beforeplugins_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. -
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)